Whamcloud - gitweb
* Made echo_commitrw() pay attention to the final 'rc' parameter (bug 1450)
authoreeb <eeb>
Mon, 8 Mar 2004 17:46:43 +0000 (17:46 +0000)
committereeb <eeb>
Mon, 8 Mar 2004 17:46:43 +0000 (17:46 +0000)
lustre/obdecho/echo.c

index 093f3ac..9248472 100644 (file)
@@ -392,7 +392,8 @@ int echo_commitrw(int cmd, struct obd_export *export, struct obdo *oa,
         LASSERT(oti == NULL || oti->oti_handle == (void *)DESC_PRIV);
 
         for (i = 0; i < objcount; i++, obj++) {
-                int verify = obj->ioo_id != ECHO_PERSISTENT_OBJID;
+                int verify = (rc == 0 &&
+                              obj->ioo_id != ECHO_PERSISTENT_OBJID);
                 int j;
 
                 for (j = 0 ; j < obj->ioo_bufcnt ; j++, r++) {