[Pvfs2-cvs] commit by pcarns in pvfs2-1/src/server: create.sm

CVS commit program cvs at parl.clemson.edu
Mon Apr 21 14:32:43 EDT 2008


Update of /projects/cvsroot/pvfs2-1/src/server
In directory parlweb1:/tmp/cvs-serv15980/src/server

Modified Files:
      Tag: small-file-branch
	create.sm 
Log Message:
trying to be a little smarter about when to sync in the precreate path


Index: create.sm
===================================================================
RCS file: /projects/cvsroot/pvfs2-1/src/server/create.sm,v
diff -p -u -r1.46.6.12 -r1.46.6.13
--- create.sm	8 Apr 2008 15:52:39 -0000	1.46.6.12
+++ create.sm	21 Apr 2008 18:32:43 -0000	1.46.6.13
@@ -271,12 +271,15 @@ static int create_local_datafile(
         PINT_SERVER_TYPE_IO,
         &data_handle_ext_array);
 
+    /* deliberately not setting SYNC flag, because both the attrs and
+     * keyvals will be synced in later states
+     */
     ret = job_trove_dspace_create(
         s_op->req->u.create.fs_id,
         &data_handle_ext_array,
         PVFS_TYPE_DATAFILE,
         NULL,
-        TROVE_SYNC,
+        0,
         smcb,
         0,
         js_p,



More information about the Pvfs2-cvs mailing list