[PVFS2-CVS] commit by neill in pvfs2/src/server: flush.sm

CVS commit program cvs at parl.clemson.edu
Tue Jul 13 14:37:20 EDT 2004


Update of /projects/cvsroot/pvfs2/src/server
In directory parlweb:/tmp/cvs-serv23732/src/server

Modified Files:
	flush.sm 
Log Message:
- rename flow_timeout to write_transfer_timeout
- revert the timeout passed into the flow to be the default client job
  timeout
- macro-ize the msgarray_param default initialization to make life
  easy if and when these values change (now there's only one place to
  change)
- minor update to the server flush error path
- increase sys-flush job timeout since a long sync can take longer
  than the default job timeout
- misc cleanups and cruft removal


Index: flush.sm
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/server/flush.sm,v
diff -p -u -r1.9 -r1.10
--- flush.sm	17 Feb 2004 17:01:58 -0000	1.9
+++ flush.sm	13 Jul 2004 17:37:20 -0000	1.10
@@ -151,21 +151,15 @@ static int flush_keyval_flush(PINT_serve
     return (ret);
 }
 
-/* flush_check_error
- *
- * TROVE_ENOENT is an error we can safely ignore since we flush both keyval and
- * bstream spaces. ( if there is neither a bstream nor a keyval associated with
- * a handle, then i'm not sure how we should handle this... )
- */
 static int flush_check_error(PINT_server_op *s_op, job_status_s *js_p)
 {
-    PINT_STATE_DEBUG("{k,b}check_error")
+    char buf[64] = {0};
+    PINT_STATE_DEBUG("{k,b}check_error");
 
-    if (js_p->error_code == -TROVE_ENOENT)
-    {
-        gossip_err("failed to flush handle %Lu\n",
-                   Lu(s_op->req->u.flush.handle));
-    }
+    PVFS_strerror_r(js_p->error_code, buf, 64);
+
+    gossip_err("failed to flush handle %Lu: %s\n",
+               Lu(s_op->req->u.flush.handle), buf);
     return 1;
 }
 



More information about the PVFS2-CVS mailing list