]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/PGLog.cc: Trim duplicates by number of entries 46253/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 23:05:47 +0000 (01:05 +0200)
commit7cc1b29f2b7b7feee127f1dbbef947799e56f38b
tree2e5acc67d4e78aef489a3822b9c33b385beb7f2f
parentef04b8c06b2a0c5655233174f317994b1e70741c
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