Signed-off-by: Sage Weil <sage@redhat.com>
// ----
// LogEntryKey
-void LogEntryKey::encode(bufferlist& bl, uint64_t features) const
-{
- using ceph::encode;
- encode(who, bl, features);
- encode(stamp, bl);
- encode(seq, bl);
-}
-
-void LogEntryKey::decode(bufferlist::const_iterator& bl)
-{
- using ceph::decode;
- decode(who, bl);
- decode(stamp, bl);
- decode(seq, bl);
- _calc_hash();
-}
-
void LogEntryKey::dump(Formatter *f) const
{
f->dump_stream("who") << who;
return _hash;
}
- void encode(bufferlist& bl, uint64_t features) const;
- void decode(bufferlist::const_iterator& bl);
void dump(Formatter *f) const;
static void generate_test_instances(list<LogEntryKey*>& o);
return l.who == r.who && l.stamp == r.stamp && l.seq == r.seq;
}
};
-WRITE_CLASS_ENCODER_FEATURES(LogEntryKey)
namespace std {
template<> struct hash<LogEntryKey> {
TYPE(DecayCounter)
#include "common/LogEntry.h"
-TYPE_FEATUREFUL(LogEntryKey)
TYPE_FEATUREFUL(LogEntry)
TYPE_FEATUREFUL(LogSummary)