]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
Revert "osd/PeeringState: fix missed `recheck_readable` from laggy" 48104/head
authorLaura Flores <lflores@redhat.com>
Wed, 14 Sep 2022 20:41:39 +0000 (15:41 -0500)
committerLaura Flores <lflores@redhat.com>
Wed, 14 Sep 2022 21:04:59 +0000 (16:04 -0500)
This reverts commit c71ee14cdbcc499d0ccaa84f4714ad5f29821f40.

This commit caused a regression in the rados suite, as evidenced by:

- with the commit:
http://pulpito.front.sepia.ceph.com/lflores-2022-09-14_15:11:39-rados-quincy-release-distro-default-smithi/

- with the commit reverted:
http://pulpito.front.sepia.ceph.com/lflores-2022-09-14_17:02:02-rados-wip-lflores-testing-quincy-release-distro-default-smithi/

Fixes: https://tracker.ceph.com/issues/57546
Signed-off-by: Laura Flores <lflores@redhat.com>
src/osd/PeeringState.cc

index 8ad0a08e9b4c2b1e4840c81681a22b796a83fc9f..68b8d22259955dfb82455429b25b3ed8abd8fbc3 100644 (file)
@@ -1220,7 +1220,7 @@ void PeeringState::proc_lease_ack(int from, const pg_lease_ack_t& a)
   if (was_min) {
     auto old_ru = readable_until;
     recalc_readable_until();
-    if (now >= old_ru) {
+    if (now < old_ru) {
       pl->recheck_readable();
     }
   }