Whamcloud - gitweb
Branch HEAD
authorhuanghua <huanghua>
Tue, 29 Jul 2008 04:32:22 +0000 (04:32 +0000)
committerhuanghua <huanghua>
Tue, 29 Jul 2008 04:32:22 +0000 (04:32 +0000)
b=16505
i=yong.fan
i=yury.umanets

correctly handling error case if child object does not exist

lustre/mdt/mdt_handler.c

index 6877e81..5ad763f 100644 (file)
@@ -952,6 +952,7 @@ relock:
                         LU_OBJECT_DEBUG(D_WARNING, info->mti_env,
                                         &child->mot_obj.mo_lu,
                                         "Object doesn't exist!\n");
+                        GOTO(out_child, rc = -ESTALE);
                 }
 
                 ma->ma_valid = 0;