]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd/PGLog: dirty_to is inclusive 5820/head
authorSage Weil <sage@redhat.com>
Sun, 9 Aug 2015 14:46:10 +0000 (10:46 -0400)
committerNathan Cutler <ncutler@suse.com>
Sat, 5 Sep 2015 09:21:12 +0000 (11:21 +0200)
commitcd1396cd62c79b177e46cfb57ab6b3b6fdcd227b
tree639c5ed3815f61fa50ab943e557d7077c8121777
parent6571cd9a9616637bf32f9ac97a9bd864c0bff856
osd/PGLog: dirty_to is inclusive

There are only two callers of mark_dirty_to who do not pass max,
and they are both in the merge_log extending tail path.  In that
case, we want to include the last version specified in the log
writeout.  Fix the tail extending code to always specify the
last entry added, inclusive.

Fixes: #12652
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit f0ca14df0641daa04eee39d98d8bd0faf46e4e6d)
src/osd/PGLog.cc
src/osd/PGLog.h