Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
129f0e5
)
Branch: b_new
author
wangdi
<wangdi>
Tue, 19 Sep 2006 16:07:50 +0000
(16:07 +0000)
committer
wangdi
<wangdi>
Tue, 19 Sep 2006 16:07:50 +0000
(16:07 +0000)
we should put iam_it anyway
lustre/mdd/mdd_handler.c
patch
|
blob
|
history
diff --git
a/lustre/mdd/mdd_handler.c
b/lustre/mdd/mdd_handler.c
index
04be69b
..
a553a59
100644
(file)
--- a/
lustre/mdd/mdd_handler.c
+++ b/
lustre/mdd/mdd_handler.c
@@
-1179,7
+1179,6
@@
static int mdd_dir_is_empty(const struct lu_context *ctx,
int i;
for (result = 0, i = 0; result == 0 && i < 3; ++i)
result = iops->next(ctx, it);
- iops->put(ctx, it);
if (result == 0)
result = -ENOTEMPTY;
else if (result == +1)
@@
-1189,6
+1188,8
@@
static int mdd_dir_is_empty(const struct lu_context *ctx,
* Huh? Index contains no zero key?
*/
result = -EIO;
+
+ iops->put(ctx, it);
iops->fini(ctx, it);
} else
result = -ENOMEM;