Whamcloud - gitweb
Branch HEAD
[fs/lustre-release.git] / lustre / obdclass / llog_obd.c
index 0f10503..8c7196f 100644 (file)
@@ -444,7 +444,7 @@ int llog_obd_origin_add(struct llog_ctxt *ctxt,
         cathandle = ctxt->loc_handle;
         LASSERT(cathandle != NULL);
         rc = llog_cat_add_rec(cathandle, rec, logcookies, NULL);
-        if ((rc < 0) || (!logcookies && rc))
+        if (rc != 1)
                 CERROR("write one catalog record failed: %d\n", rc);
         RETURN(rc);
 }