[Pvfs2-cvs] commit by bligon in pvfs2/src/server: get-attr.sm

CVS commit program cvs at parl.clemson.edu
Fri Jul 31 17:45:36 EDT 2009


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

Modified Files:
      Tag: Orange-FailOver-Becky
	get-attr.sm 
Log Message:
first incarnation of failover in sys-io.sm


Index: get-attr.sm
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/server/get-attr.sm,v
diff -p -u -r1.97.18.3 -r1.97.18.4
--- get-attr.sm	28 Jul 2009 19:11:19 -0000	1.97.18.3
+++ get-attr.sm	31 Jul 2009 21:45:36 -0000	1.97.18.4
@@ -30,6 +30,8 @@
 #include "pvfs2-internal.h"
 #include "pint-cached-config.h"
 
+static uint64_t UINT64_HIGH = 0xffffffffffffffff;
+
 PINT_server_trove_keys_s Trove_Special_Keys[] =
 {
     {"user.pvfs2.dist_name"    , SPECIAL_DIST_NAME_KEYLEN},
@@ -1036,7 +1038,7 @@ static PINT_sm_action getattr_mirrored_h
       for (col=0; col<meta->dfile_count; col++)
       {
          index = (row*meta->dfile_count) + col;
-         if ( s_op->u.getattr.mirror_dfile_status_array[index] )
+         if ( s_op->u.getattr.mirror_dfile_status_array[index] == UINT64_HIGH )
             meta->mirror_dfile_array[index] = 0;
          gossip_debug(GOSSIP_MIRROR_DEBUG,
                       "\tmirror handle[%d]:%llu \t"



More information about the Pvfs2-cvs mailing list