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:
79a9d88
)
forgotten lu_object_put() in case of error
author
tappro
<tappro>
Mon, 14 Aug 2006 22:37:24 +0000
(22:37 +0000)
committer
tappro
<tappro>
Mon, 14 Aug 2006 22:37:24 +0000
(22:37 +0000)
lustre/osd/osd_oi.c
patch
|
blob
|
history
diff --git
a/lustre/osd/osd_oi.c
b/lustre/osd/osd_oi.c
index
ce1ec78
..
c6bdb90
100644
(file)
--- a/
lustre/osd/osd_oi.c
+++ b/
lustre/osd/osd_oi.c
@@
-93,9
+93,11
@@
int osd_oi_init(struct osd_thread_info *info,
if (result == 0) {
LASSERT(obj->do_index_ops != NULL);
oi->oi_dir = obj;
- } else
+ } else
{
CERROR("Wrong index \"%s\": %d\n",
oi_dirname, result);
+ lu_object_put(ctx, &obj->do_lu);
+ }
} else {
result = PTR_ERR(obj);
CERROR("Cannot open \"%s\": %d\n", oi_dirname, result);