From 5128674ee7133379e5bf9d3f21efb318dfc1dddb Mon Sep 17 00:00:00 2001 From: eeb Date: Mon, 8 Mar 2004 17:46:43 +0000 Subject: [PATCH] * Made echo_commitrw() pay attention to the final 'rc' parameter (bug 1450) --- lustre/obdecho/echo.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lustre/obdecho/echo.c b/lustre/obdecho/echo.c index 093f3ac..9248472 100644 --- a/lustre/obdecho/echo.c +++ b/lustre/obdecho/echo.c @@ -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++) { -- 1.8.3.1