Whamcloud - gitweb
Branch: b_new_cmd
authorwangdi <wangdi>
Tue, 3 Oct 2006 17:47:51 +0000 (17:47 +0000)
committerwangdi <wangdi>
Tue, 3 Oct 2006 17:47:51 +0000 (17:47 +0000)
it should handle the last link for those cross-ref/splitted object unlink

lustre/mdt/mdt_reint.c

index dbe98f9..25cadbe 100644 (file)
@@ -376,6 +376,8 @@ static int mdt_reint_unlink(struct mdt_thread_info *info,
         if (strlen(rr->rr_name) == 0) {
                 /* remote partial operation */
                 rc = mo_ref_del(info->mti_env, mdt_object_child(mp), ma);
+                
+                mdt_handle_last_unlink(info, mp, ma);
                 GOTO(out_unlock_parent, rc);
         }