]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: Include dups in copy_after() and copy_up_to()
authorDavid Zafman <dzafman@redhat.com>
Thu, 2 May 2019 02:47:55 +0000 (19:47 -0700)
committerDavid Zafman <dzafman@redhat.com>
Mon, 13 May 2019 22:35:16 +0000 (15:35 -0700)
commit407b88ffc72f9d57391f4802829037fb43f36b1d
tree9e5a4f10b76cf78556df772bca8dc2a6f723ae12
parentfcbe84253e4bab96fe429f59e34e3936ad8c3c6f
osd: Include dups in copy_after() and copy_up_to()

Client saw out of order results in a test with a very small
pg_log because a backfill/recovery sent a small number of
log entries for duplicate checks.

Since these copy operations are equivalent to both a copy
and trim (an argument controls how many log entries
transfer), we need to include any new dups with enough
existing dups up to the configured maximum.

Fixes: http://tracker.ceph.com/issues/39304
Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit 00f279db37fc648584c4c741e0453b1d4f4320e4)

Conflicts:
src/osd/PeeringState.cc contents in src/osd/PG.cc
src/osd/osd_types.cc (trivial)
src/osd/PG.cc
src/osd/osd_types.cc
src/osd/osd_types.h