]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: oops, fix null snapflush fix
authorSage Weil <sage@newdream.net>
Wed, 18 Aug 2010 17:38:40 +0000 (10:38 -0700)
committerSage Weil <sage@newdream.net>
Wed, 18 Aug 2010 17:38:40 +0000 (10:38 -0700)
src/mds/Locker.cc

index 0c683f09659c986a2821fd08d92c5f73790c689b..b46de74518ab0bc2c72a3f471a141f50e33d10fa 100644 (file)
@@ -1872,7 +1872,7 @@ void Locker::handle_client_caps(MClientCaps *m)
            break;
          if (p->second.count(client)) {
            dout(10) << " doing async NULL snapflush on " << p->first << " from client" << p->second << dendl;
-           CInode *sin = mdcache->get_inode(head_in->ino(), p->first - 1);
+           CInode *sin = mdcache->get_inode(head_in->ino(), p->first);
            assert(sin);
            _do_snap_update(sin, 0, sin->first - 1, m, NULL);
            head_in->client_need_snapflush[in->last].erase(client);