From: Sage Weil Date: Thu, 15 May 2008 19:57:20 +0000 (-0700) Subject: mds: pick up mtime changes with EXCL, not just WR|WRBUFFER X-Git-Tag: v0.3~209^2~51 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d1f9f675dcfe7f9c00a6b49f433733a6eeb4b5eb;p=ceph.git mds: pick up mtime changes with EXCL, not just WR|WRBUFFER --- diff --git a/src/mds/Locker.cc b/src/mds/Locker.cc index 7709f9b6bcbd..cf8f513741aa 100644 --- a/src/mds/Locker.cc +++ b/src/mds/Locker.cc @@ -951,7 +951,7 @@ void Locker::handle_client_file_caps(MClientFileCaps *m) bool dirty_mtime = false; bool dirty_ctime = false; bool dirty_size = false; - if (had_or_has_wr) { + if (had_or_has_wr || excl) { if (mtime > latest->mtime || (excl && mtime != latest->mtime)) dirty_mtime = true; if (ctime > latest->ctime) diff --git a/src/messages/MClientFileCaps.h b/src/messages/MClientFileCaps.h index 0d5cde6ada42..4a28576e6c20 100644 --- a/src/messages/MClientFileCaps.h +++ b/src/messages/MClientFileCaps.h @@ -99,6 +99,7 @@ class MClientFileCaps : public Message { << " wanted" << cap_string(h.wanted) << " size " << h.size << "/" << h.max_size << " mtime " << utime_t(h.mtime) + << " tws " << h.time_warp_seq << ")"; }