[Pvfs2-cvs] commit by bligon in pvfs2/src/server: set-eattr.sm
CVS commit program
cvs at parl.clemson.edu
Tue Jul 28 15:54:40 EDT 2009
Update of /projects/cvsroot/pvfs2/src/server
In directory parlweb1:/tmp/cvs-serv12866/src/server
Modified Files:
Tag: Orange-FailOver-Becky
set-eattr.sm
Log Message:
Update meta_hint with mirroring flag, if it exists. Create meta_hint with mirroring flag, if it does not.
Index: set-eattr.sm
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/server/set-eattr.sm,v
diff -p -u -r1.21.10.2.2.2 -r1.21.10.2.2.3
--- set-eattr.sm 10 Jul 2009 21:16:26 -0000 1.21.10.2.2.2
+++ set-eattr.sm 28 Jul 2009 19:54:40 -0000 1.21.10.2.2.3
@@ -55,8 +55,7 @@ machine pvfs2_set_eattr_sm
{
run seteattr_get_metahint_flag;
SKIP_UPDATE => check_immutable;
- success => update_flag;
- default => final_response;
+ default => update_flag;
}
state update_flag
@@ -89,7 +88,6 @@ machine pvfs2_set_eattr_sm
default => final_response;
}
-
state final_response
{
jump pvfs2_final_response_sm;
@@ -315,6 +313,11 @@ static PINT_sm_action seteattr_set_metah
,s_op->attr.objtype);
gossip_debug(GOSSIP_MIRROR_DEBUG,"\tAttribute mask:%x\n"
,s_op->attr.mask);
+ /*check return code: if we have an error other than a not found condition,
+ *then return the error; otherwise, keep processing.
+ */
+ if (js_p->error_code < 0 && js_p->error_code != -TROVE_ENOENT)
+ return SM_ACTION_COMPLETE;
for (i=0; i<seteattr->nkey; i++)
{
More information about the Pvfs2-cvs
mailing list