]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/PGLog.cc: Trim duplicates by number of entries 46251/head
authorNitzanMordhai <nmordech@redhat.com>
Mon, 21 Mar 2022 11:34:34 +0000 (11:34 +0000)
committerRadosław Zarzyński <rzarzyns@redhat.com>
Thu, 12 May 2022 22:35:22 +0000 (00:35 +0200)
commit3ff0df6a28a1d9e197bdba40be7126fed8a14ae9
tree90c55ef1bd1f50f4a6aa4b17452abc6c16711362
parent5245fb33dd02e53cf0ef5d2f7be5904b6fbe63ce
osd/PGLog.cc: Trim duplicates by number of entries
PGLog needs to trim duplicates by the number of entries rather than the versions. That way, we prevent unbounded duplicate growth.

Fixed: https://tracker.ceph.com/issues/53729
Signed-off-by: Nitzan Mordechai <nmordec@redhat.com>
(cherry picked from commit 0d253bcc09a5540fa6c724f6128fb7436ded5ec1)
src/osd/PGLog.cc
src/osd/PGLog.h
src/test/osd/TestPGLog.cc
src/tools/ceph_objectstore_tool.cc