]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: pick up mtime changes with EXCL, not just WR|WRBUFFER
authorSage Weil <sage@newdream.net>
Thu, 15 May 2008 19:57:20 +0000 (12:57 -0700)
committerSage Weil <sage@newdream.net>
Thu, 15 May 2008 19:57:20 +0000 (12:57 -0700)
src/mds/Locker.cc
src/messages/MClientFileCaps.h

index 7709f9b6bcbdf24b0b9a9cb71f7b05a1774eeda2..cf8f513741aa618bc56aa38a2bdb3d260a1701be 100644 (file)
@@ -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)
index 0d5cde6ada428bb78e33d7727a88a33cefbff1bf..4a28576e6c20cdb70d3e6f9023c6b09e42666385 100644 (file)
@@ -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
        << ")";
   }