From d1f9f675dcfe7f9c00a6b49f433733a6eeb4b5eb Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 15 May 2008 12:57:20 -0700 Subject: [PATCH] mds: pick up mtime changes with EXCL, not just WR|WRBUFFER --- src/mds/Locker.cc | 2 +- src/messages/MClientFileCaps.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mds/Locker.cc b/src/mds/Locker.cc index 7709f9b6bcb..cf8f513741a 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 0d5cde6ada4..4a28576e6c2 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 << ")"; } -- 2.47.3