]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
uclient: fill in InodeCap::wanted member on send_cap.
authorGreg Farnum <gregory.farnum@dreamhost.com>
Wed, 4 May 2011 17:50:23 +0000 (10:50 -0700)
committerGreg Farnum <gregory.farnum@dreamhost.com>
Wed, 4 May 2011 17:50:41 +0000 (10:50 -0700)
Previously it was never used, which I think led to spamming the MDS
with cap messages!

Hopefully this won't reveal any new cap-handling bugs...

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
src/client/Client.cc

index 28fc47c67863294fa66266e96c0396f0d12339bc..6a27273ee4177cce9c0939aec39e562b952b1d16 100644 (file)
@@ -1904,6 +1904,7 @@ void Client::send_cap(Inode *in, int mds, InodeCap *cap, int used, int want, int
     
   in->reported_size = in->size;
   m->set_snap_follows(in->snaprealm->get_snap_context().seq);
+  cap->wanted = want;
   if (cap == in->auth_cap) {
     m->set_max_size(in->wanted_max_size);
     in->requested_max_size = in->wanted_max_size;