Whamcloud - gitweb
LU-1302 llog: modify llog_write/llog_add to support OSD
[fs/lustre-release.git] / lustre / mgc / mgc_request.c
index e4bc00a..3e7dd17 100644 (file)
@@ -1593,8 +1593,8 @@ static int mgc_copy_handler(const struct lu_env *env, struct llog_handle *llh,
 
         /* Append all records */
         local_rec.lrh_len -= sizeof(*rec) + sizeof(struct llog_rec_tail);
-       rc = llog_write_rec(env, local_llh, &local_rec, NULL, 0,
-                            (void *)cfg_buf, -1);
+       rc = llog_write(env, local_llh, &local_rec, NULL, 0,
+                       (void *)cfg_buf, -1);
 
         lcfg = (struct lustre_cfg *)cfg_buf;
         CDEBUG(D_INFO, "idx=%d, rc=%d, len=%d, cmd %x %s %s\n",