[Pvfs2-cvs] commit by pw in pvfs2/src/client/sysint: mgmt-get-dfile-array.sm

CVS commit program cvs at parl.clemson.edu
Thu Oct 18 14:22:33 EDT 2007


Update of /projects/cvsroot/pvfs2/src/client/sysint
In directory parlweb1:/tmp/cvs-serv32675/src/client/sysint

Modified Files:
	mgmt-get-dfile-array.sm 
Log Message:
PVFS_imgmt_get_dfile_array job might complete immediately.  Handle
the negative op_id that results in that case.


Index: mgmt-get-dfile-array.sm
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/client/sysint/mgmt-get-dfile-array.sm,v
diff -u -p -p -u -r1.31 -r1.32
--- mgmt-get-dfile-array.sm	30 Aug 2007 00:13:41 -0000	1.31
+++ mgmt-get-dfile-array.sm	18 Oct 2007 18:22:32 -0000	1.32
@@ -121,15 +121,19 @@ PVFS_error PVFS_mgmt_get_dfile_array(
     }
     else
     {
-        ret = PVFS_mgmt_wait(op_id, "get_dfile_array", &error);
-        if (ret)
+        if (op_id >= 0)  /* -1 means completed immediately */
         {
-            PVFS_perror_gossip("PVFS_mgmt_wait call", ret);
-            error = ret;
+            ret = PVFS_mgmt_wait(op_id, "get_dfile_array", &error);
+            if (ret)
+            {
+                PVFS_perror_gossip("PVFS_mgmt_wait call", ret);
+                error = ret;
+            }
         }
     }
 
-    PINT_mgmt_release(op_id);
+    if (op_id >= 0)
+        PINT_mgmt_release(op_id);
     return error;
 }
 



More information about the Pvfs2-cvs mailing list