]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
journal: cleanup watch refetch flag handling
authorJason Dillaman <dillaman@redhat.com>
Mon, 23 May 2016 15:01:05 +0000 (11:01 -0400)
committerJason Dillaman <dillaman@redhat.com>
Tue, 31 May 2016 15:49:36 +0000 (11:49 -0400)
commitfa08330dadb9ce973db866ad641a79d5d2dd290c
tree93b3892b5ebc2e4718b0a32ed0b56179ffaf58ba
parent522c7f9432e029f4db2b7455fb83b4aeb3ff4a4e
journal: cleanup watch refetch flag handling

Clear the refetch required flag while scheduling the watch
and remove the stale object after the watch completes if still
empty. Previously, it was possible for the flag to become
out-of-sync with whether or not it was actually refreshed
and pruned.

Fixes: http://tracker.ceph.com/issues/15993
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit ff2cc27ae592646b495bf1b614d35bd50c091a3d)
src/journal/JournalPlayer.cc
src/test/journal/test_JournalPlayer.cc