Whamcloud - gitweb
- fixed stupid bug with locking in MDS. It caused clients do not flush local
authoryury <yury>
Mon, 25 Oct 2004 14:11:54 +0000 (14:11 +0000)
committeryury <yury>
Mon, 25 Oct 2004 14:11:54 +0000 (14:11 +0000)
caches on rename, what caused in turn stat to success after rename and to fail
creating new the same name again. Actually this is most of 24* tests from
sanity.sh and runtests.

lustre/mds/mds_reint.c

index 1de982c..f1a1fa9 100644 (file)
@@ -1099,7 +1099,7 @@ int enqueue_4ordered_locks(struct obd_device *obd,struct ldlm_res_id *p1_res_id,
         for (i = 0; i < 4; i++) {
                 flags = 0;
                 if (res_id[i]->name[0] == 0)
-                        break;
+                        continue;
                 if (i != 0 &&
                     !memcmp(res_id[i], res_id[i-1], sizeof(*res_id[i])) &&
                     (policies[i]->l_inodebits.bits &