From: Sage Weil Date: Wed, 18 Aug 2010 17:38:40 +0000 (-0700) Subject: mds: oops, fix null snapflush fix X-Git-Tag: v0.22~259 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=28d7a400826f6dd406a4db107c2fc73e625dc9b7;p=ceph.git mds: oops, fix null snapflush fix --- diff --git a/src/mds/Locker.cc b/src/mds/Locker.cc index 0c683f09659..b46de74518a 100644 --- a/src/mds/Locker.cc +++ b/src/mds/Locker.cc @@ -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);