]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd/OSD: maybe_share_map()- avoid locking `sent_epoch_lock` twice
authorMatan Breizman <mbreizma@redhat.com>
Tue, 23 May 2023 15:20:59 +0000 (15:20 +0000)
committerMatan Breizman <mbreizma@redhat.com>
Thu, 15 Jun 2023 14:35:35 +0000 (14:35 +0000)
commit472f2c0b0c02cb857db03853c99f317f3ab17615
treead433e562f98b1428d88ef42f2fb069785fb392c
parent3f1e887e2658fd8a3ea81676ab649f2cc0f56ab4
osd/OSD: maybe_share_map()- avoid locking `sent_epoch_lock` twice

Invoking `send_incremental_map()` doesn't wait until the replica
actually receives the map, so marking `last_epoch_sent` prior to
invoking it is just as correct.

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
src/osd/OSD.cc