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:
3b14b38
)
Branch: b_new_cmd
author
wangdi
<wangdi>
Tue, 1 Aug 2006 00:31:14 +0000
(
00:31
+0000)
committer
wangdi
<wangdi>
Tue, 1 Aug 2006 00:31:14 +0000
(
00:31
+0000)
we should check whether srcid is equal to tgtid before really rename
lustre/mdt/mdt_reint.c
patch
|
blob
|
history
diff --git
a/lustre/mdt/mdt_reint.c
b/lustre/mdt/mdt_reint.c
index
fee76be
..
d0390cd
100644
(file)
--- a/
lustre/mdt/mdt_reint.c
+++ b/
lustre/mdt/mdt_reint.c
@@
-482,6
+482,9
@@
static int mdt_reint_rename(struct mdt_thread_info *info)
if (rc == 0) {
/* the new_fid should have been filled at this moment*/
+ if (lu_fid_eq(old_fid, new_fid))
+ GOTO(out_unlock_old, rc);
+
lh_newp->mlh_mode = LCK_EX;
mnew = mdt_object_find_lock(info, new_fid, lh_newp,
MDS_INODELOCK_FULL);