]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: fix keep caps test.
authorGreg Farnum <gregory.farnum@dreamhost.com>
Fri, 22 Jul 2011 18:29:18 +0000 (11:29 -0700)
committerGreg Farnum <gregory.farnum@dreamhost.com>
Fri, 22 Jul 2011 18:36:46 +0000 (11:36 -0700)
commit920318439470c2d694778c2e5a53f4ede240c70a
tree77d651752129827a9caacc841629eec1964238a6
parent18314fabe01fab909544543a01a53fdcb689149d
mds: fix keep caps test.

I think this has just been broken since it was written: previously it
dropped the caps if the keep time was after current time. Since the
keep time was never set to non-zero except after failing this test,
and only changed once, if you didn't come into this function again
within the 2-second window then you would never drop the caps.

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