Skip to content
Snippets Groups Projects
Commit 927d603f authored by alex's avatar alex
Browse files

- mds_reint_unlink() shouldn't kill slaves if master directory can't be unlinked

parent 6987e066
No related branches found
No related tags found
No related merge requests found
......@@ -1838,7 +1838,10 @@ static int mds_reint_unlink(struct mds_update_record *rec, int offset,
mds_open_unlink_rename(rec, obd, dparent, dchild, NULL);
}
/* handle splitted dir */
mds_unlink_slave_objs(obd, dchild);
if (rc == 0) {
/* master directory can be non-empty or something else ... */
mds_unlink_slave_objs(obd, dchild);
}
rc = mds_finish_transno(mds, dparent->d_inode, handle, req,
rc, 0);
if (!rc)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment