priority queue first commit