Whamcloud - gitweb
b=19044
[fs/lustre-release.git] / lustre / mdd / mdd_orphans.c
index 506916e..f4ea74b 100644 (file)
@@ -343,9 +343,10 @@ static int orph_key_test_and_del(const struct lu_env *env,
 
         rc = -EBUSY;
         if (mdo->mod_count == 0) {
-                CWARN("Found orphan!\n");
+                CWARN("Found orphan! Delete it\n");
                 rc = orphan_object_destroy(env, mdo, key);
         } else {
+                CDEBUG(D_HA, "Found orphan, open count = %d\n", mdo->mod_count);
                 mdo->mod_flags |= ORPHAN_OBJ;
         }
 
@@ -373,7 +374,7 @@ static int orph_index_iterate(const struct lu_env *env,
         iops = &dor->do_index_ops->dio_it;
         it = iops->init(env, dor, BYPASS_CAPA);
         if (it != NULL) {
-                result = iops->get(env, it, (const void *)"");
+                result = iops->load(env, it, 0);
                 if (result > 0) {
                         /* main cycle */
                         do {