]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common/LogEntry: make LogSummary::contains() efficient
authorSage Weil <sage@redhat.com>
Mon, 5 Jun 2017 19:31:05 +0000 (15:31 -0400)
committerSage Weil <sage@redhat.com>
Mon, 5 Jun 2017 19:31:05 +0000 (15:31 -0400)
commit0ee4bafff637eef15e5bd39e8f5c4ae77ab05dcc
treedd03010b4ce805992d94ebbd5965a5d5313088d4
parentf1239e2e8097a14fbebadcff9740bf040f56083f
common/LogEntry: make LogSummary::contains() efficient

A linear search here is dumb.  Use an unordered_set.

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