]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/LogMonitor: separate out summary by channel 21395/head
authorSage Weil <sage@redhat.com>
Thu, 12 Apr 2018 18:41:35 +0000 (13:41 -0500)
committerSage Weil <sage@redhat.com>
Thu, 12 Apr 2018 21:09:45 +0000 (16:09 -0500)
commit648aaf271cb02c647f046288656c11f15a7799b2
tree02d0263457c63d2e7750e5f2350e70c3bf3ebbfd
parentbd59d1ca5321a8828266246d94da2c03f8412f9d
mon/LogMonitor: separate out summary by channel

Instead of keeping the last N entries, keep the last N entries for each
channel.  This ensures that lots of audit records don't age out the
cluster records (or vice versa).

The overall approach does not change, and that approach is overall pretty
lame.  We're still rewriting a big summary blob on every log commit.  We
still should refactor this later.  This solves the immediate problem at a
small cost of increasing the log summary structure by ~2x.

Signed-off-by: Sage Weil <sage@redhat.com>
src/common/LogEntry.cc
src/common/LogEntry.h
src/mon/LogMonitor.cc