]> git.apps.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, 24 May 2016 16:58:55 +0000 (12:58 -0400)
commitff2cc27ae592646b495bf1b614d35bd50c091a3d
treea97f351e41daa12edf026573497621afcd1e4147
parenta41860a501a245b57510543946cb1d2a24b61342
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>
src/journal/JournalPlayer.cc
src/test/journal/test_JournalPlayer.cc