]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
unit tests for PGLog::rewind_divergent_log 349/head
authorLoic Dachary <loic@dachary.org>
Sat, 8 Jun 2013 07:45:58 +0000 (09:45 +0200)
committerLoic Dachary <loic@dachary.org>
Mon, 10 Jun 2013 12:08:51 +0000 (14:08 +0200)
commit8f141c451be722eceacb63c8d5f3544566756e96
treea4136e9ca4d1ac9cadb3eb57207f9251bb1169ef
parent04e89a4012f81a12cce0324462281ff6c0778ed8
unit tests for PGLog::rewind_divergent_log

The tests covers 100% of the LOC of rewind_divergent_log. There are
three situations :

 * throw an assert because the data is inconsistent

 * special case when the entire logs is divergent

 * regular workflow where all divergent entries are run to
   merge_old_entry

http://tracker.ceph.com/issues/5213 refs #5213

Signed-off-by: Loic Dachary <loic@dachary.org>
src/test/osd/TestPGLog.cc