Whamcloud - gitweb
Branch: b_new_cmd
authorwangdi <wangdi>
Tue, 19 Sep 2006 16:12:57 +0000 (16:12 +0000)
committerwangdi <wangdi>
Tue, 19 Sep 2006 16:12:57 +0000 (16:12 +0000)
put the iam_it anyway

lustre/mdd/mdd_orphans.c

index 4f35c92..5209cc7 100644 (file)
@@ -154,10 +154,11 @@ static int orph_index_iterate(const struct lu_context *ctx,
                                 orph_key_test_and_del(ctx, mdd, key);
                                 result = iops->next(ctx, it);
                         }
-                        iops->put(ctx, it);
-                } else if (result == 0)
+                } else if (result == 0) 
                         /* Index contains no zero key? */
                         result = -EIO;
+                
+                iops->put(ctx, it);
                 iops->fini(ctx, it);
         } else
                 result = -ENOMEM;