]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
objecter: request OSDMap after idle ticks
authorNitzan Mordechai <nmordech@redhat.com>
Thu, 22 May 2025 08:25:06 +0000 (08:25 +0000)
committerNitzan Mordechai <nmordech@redhat.com>
Mon, 7 Jul 2025 11:31:33 +0000 (11:31 +0000)
commita869fa8c89c2ab15e45412bcc47a6d5e0ee442ab
tree1bafe2fb7fea13590140f8dd5a2cd738db4f6f87
parent4681d017417a48e5f08e4dbf4e65e39422e151d9
objecter: request OSDMap after idle ticks

If the objecter goes two ticks without receiving an OSDMap, it may
fall behind on incremental updates.  Call `maybe_request_osdmap()` in
the tick handler whenever we detect that two consecutive ticks have
elapsed without a fresh map, so we minimize the time needed to catch
up on missed changes.

Fixes: https://tracker.ceph.com/issues/71261
Signed-off-by: Nitzan Mordechai <nmordec@redhat.com>
(cherry picked from commit 7fe1e426663567bf5a1f3e562722de78017050f9)
src/osdc/Objecter.cc
src/osdc/Objecter.h