]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/LogMonitor: replace semi-broken pending_summary with pending_keys
authorSage Weil <sage@newdream.net>
Tue, 22 Jun 2021 21:35:10 +0000 (17:35 -0400)
committerSage Weil <sage@newdream.net>
Fri, 2 Jul 2021 13:00:03 +0000 (09:00 -0400)
commit159a9cb04bf4ff78e367cb071551d5b88de2b580
treef1810c8a864708f9ed151c747b9140fdb78009ea
parent871b2e945638396f54532d6c892a56de6f18e78b
mon/LogMonitor: replace semi-broken pending_summary with pending_keys

First, we don't need to store actual keys in pending_summary.  That is
what pending_log contains (the actual pending entries).

However, we do want to efficiently track pending_keys so that we ignore
dups within the same proposal interval.  Use pending_keys for that.

Fix a few users to look only and summary.keys or both summary and
pending_keys, as appropriate.

This is simpler, less confusing, and probably fixes some very subtle
bugs.

Signed-off-by: Sage Weil <sage@newdream.net>
src/mon/LogMonitor.cc
src/mon/LogMonitor.h