]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
PGLog::proc_replica_log,merge_log: fix bound for last_update 12340/head
authorSamuel Just <sjust@redhat.com>
Mon, 5 Dec 2016 20:08:14 +0000 (12:08 -0800)
committerSamuel Just <sjust@redhat.com>
Mon, 5 Dec 2016 20:08:14 +0000 (12:08 -0800)
commitb03c9501357ac8bee5f6484087f7db7a4f2d9ca8
treec8282501b6e8b29db4e11e2a2c4b8c20f9e4ae56
parent7b1293e70db51f620210332bde1f83ade15bd9d3
PGLog::proc_replica_log,merge_log: fix bound for last_update

If olog.tail > log.tail, olog.tail is also a bound on last_update.
See the changed comment in the commit for details.

Also adds unit tests.

Fixes: http://tracker.ceph.com/issues/18127
Signed-off-by: Samuel Just <sjust@redhat.com>
src/osd/PGLog.cc
src/test/osd/TestPGLog.cc