Message ID | 1357290140-17044-30-git-send-email-zheng.z.yan@intel.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/src/mds/MDCache.cc b/src/mds/MDCache.cc index 236a0b9..9557436 100644 --- a/src/mds/MDCache.cc +++ b/src/mds/MDCache.cc @@ -7049,7 +7049,11 @@ public: C_MDC_RetryOpenRemoteIno(MDCache *mdc, inodeno_t i, Context *c, bool wx) : mdcache(mdc), ino(i), want_xlocked(wx), onfinish(c) {} void finish(int r) { - mdcache->open_remote_ino(ino, onfinish, want_xlocked); + if (mdcache->get_inode(ino)) { + onfinish->finish(0); + delete onfinish; + } else + mdcache->open_remote_ino(ino, onfinish, want_xlocked); } };