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:
4d696ce
)
disable expensive assert.
author
nikita
<nikita>
Wed, 25 Oct 2006 16:55:18 +0000
(16:55 +0000)
committer
nikita
<nikita>
Wed, 25 Oct 2006 16:55:18 +0000
(16:55 +0000)
lustre/osd/osd_handler.c
patch
|
blob
|
history
diff --git
a/lustre/osd/osd_handler.c
b/lustre/osd/osd_handler.c
index
731e932
..
503b5ae
100644
(file)
--- a/
lustre/osd/osd_handler.c
+++ b/
lustre/osd/osd_handler.c
@@
-2192,7
+2192,12
@@
static int osd_fid_lookup(const struct lu_env *env,
LASSERT(osd_invariant(obj));
LASSERT(obj->oo_inode == NULL);
LASSERT(fid_is_sane(fid));
- LASSERT(fid_is_local(ldev->ld_site, fid));
+ /*
+ * This assertion checks that osd layer sees only local
+ * fids. Unfortunately it is somewhat expensive (does a
+ * cache-lookup). Disabling it for production/acceptance-testing.
+ */
+ LASSERT(1 || fid_is_local(ldev->ld_site, fid));
ENTRY;