Whamcloud - gitweb
LU-2444 build: fix 'error handling' issues
[fs/lustre-release.git] / lustre / mgs / mgs_llog.c
index cf43a4b..32c5e03 100644 (file)
@@ -1480,7 +1480,7 @@ static int mgs_log_is_empty(const struct lu_env *env,
                GOTO(out_ctxt, rc);
        }
 
                GOTO(out_ctxt, rc);
        }
 
-       llog_init_handle(env, llh, LLOG_F_IS_PLAIN, NULL);
+       rc = llog_init_handle(env, llh, LLOG_F_IS_PLAIN, NULL);
        if (rc)
                GOTO(out_close, rc);
        rc = llog_get_size(llh);
        if (rc)
                GOTO(out_close, rc);
        rc = llog_get_size(llh);