[Pvfs2-cvs] commit by pcarns in pvfs2-1/src/common/mgmt: pint-worker-threaded-queues.c

CVS commit program cvs at parl.clemson.edu
Wed Dec 10 10:28:39 EST 2008


Update of /projects/cvsroot/pvfs2-1/src/common/mgmt
In directory parlweb1:/tmp/cvs-serv21612

Modified Files:
	pint-worker-threaded-queues.c 
Log Message:
mimic logic from other worker implementations to resolve queue_id before
searching for it in remove function


Index: pint-worker-threaded-queues.c
===================================================================
RCS file: /projects/cvsroot/pvfs2-1/src/common/mgmt/pint-worker-threaded-queues.c,v
diff -p -u -r1.3 -r1.4
--- pint-worker-threaded-queues.c	10 Dec 2008 15:21:18 -0000	1.3
+++ pint-worker-threaded-queues.c	10 Dec 2008 15:28:39 -0000	1.4
@@ -145,6 +145,10 @@ static int threaded_queues_queue_remove(
     w = &inst->threaded;
 
     gen_mutex_lock(&w->mutex);
+
+    queue = id_gen_fast_lookup(queue_id);
+    assert(queue);
+
     while(!qlist_exists(&w->queues, &queue->link))
     {
         /* assume that operations are being pulled off presently



More information about the Pvfs2-cvs mailing list