]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
common/LogEntry: make LogEntryKey opaque and cache its hash value
authorSage Weil <sage@redhat.com>
Tue, 6 Jun 2017 18:50:46 +0000 (14:50 -0400)
committerSage Weil <sage@redhat.com>
Tue, 6 Jun 2017 18:50:46 +0000 (14:50 -0400)
commitcb1f57c5c3af4e2ece83afbb38a146eb8b966526
tree093fdd055cff600dc745d76fc17d47fc2f8e6608
parente320c242869d5ecf097d07e35037b50a81d1d05e
common/LogEntry: make LogEntryKey opaque and cache its hash value

This avoids recalculating.  We eliminate the default ctor at the same
time and make the type totally opaque (so that its fields cannot be
modified except by the ctor and decode).

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