]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
journal: re-fetch active object before advancing set during replay
authorJason Dillaman <dillaman@redhat.com>
Fri, 13 May 2016 18:49:07 +0000 (14:49 -0400)
committerJason Dillaman <dillaman@redhat.com>
Wed, 18 May 2016 15:02:28 +0000 (11:02 -0400)
commit6056f8c45c99bd37cb18933a37cc238c7e9a7c7d
treebf0a8a5b0a0dc40ac7bdd60020bcb911a58d76a6
parent63c70ad29f17d14e43b22b7e76b4ea7bc2282a2b
journal: re-fetch active object before advancing set during replay

During a live replay, it's possible that an append and and overflow
into the next object could race with the live playback of the same
object.  Re-fetch an "empty" object at least once before advancing
to next set to ensure all records have been read.

Fixes: http://tracker.ceph.com/issues/15665
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/journal/JournalPlayer.cc
src/journal/JournalPlayer.h
src/journal/ObjectPlayer.cc
src/journal/ObjectPlayer.h
src/test/journal/test_JournalPlayer.cc