]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/PGLog: dirty_to is inclusive 5763/head
authorSage Weil <sage@redhat.com>
Sun, 9 Aug 2015 14:46:10 +0000 (10:46 -0400)
committerLoic Dachary <ldachary@redhat.com>
Wed, 2 Sep 2015 19:26:36 +0000 (21:26 +0200)
commit77624aff03a8df7805ac0c1c6a7a2085f41fb6a3
treec9481462892bc8ea407a8919621cf1df634696f2
parent845d2aed9e9a9893678226b8661fbd8ff87c090f
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