]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
journal: differentiate corruption vs missing entry errors
authorJason Dillaman <dillaman@redhat.com>
Tue, 23 Feb 2016 13:18:36 +0000 (08:18 -0500)
committerJason Dillaman <dillaman@redhat.com>
Fri, 26 Feb 2016 16:50:36 +0000 (11:50 -0500)
commit92f24095d7b85d5fd189f611ced1f527c1c7de96
tree2be922d6abd711f74c5e35dc9aea8b8d78650cb6
parent39671f1f4d7020fcc97903b1d8b1e19149be3758
journal: differentiate corruption vs missing entry errors

librbd should treat the corruption of the journal differently from
missing journal entries.  If entries are missing, it might be the
result of a crash and the journal should just be replayed through
the most recent, consistent entry.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/journal/JournalPlayer.cc
src/journal/ObjectPlayer.cc
src/test/journal/test_JournalPlayer.cc
src/test/journal/test_ObjectPlayer.cc