Whamcloud - gitweb
b=3829
authoralex <alex>
Wed, 14 Jul 2004 14:04:27 +0000 (14:04 +0000)
committeralex <alex>
Wed, 14 Jul 2004 14:04:27 +0000 (14:04 +0000)
- mds_copy_unlink_reply() shouldn't be called if md_unlink() returns an error

lustre/mds/mds_reint.c

index 8dca20e..8564f6b 100644 (file)
@@ -1542,7 +1542,8 @@ static int mds_reint_unlink_remote(struct mds_update_record *rec, int offset,
         rc = md_unlink(mds->mds_lmv_exp, &op_data, &request);
         cleanup_phase = 2;
         if (request) {
-                mds_copy_unlink_reply(req, request);
+                if (rc == 0)
+                        mds_copy_unlink_reply(req, request);
                 ptlrpc_req_finished(request);
         }
         if (rc == 0) {