}
+// -- eversion_t --
+string eversion_t::get_key_name() const
+{
+ char key[40];
+ snprintf(
+ key, sizeof(key), "%010u.%020llu", epoch, (long long unsigned)version);
+ return string(key);
+}
+
// -- pool_snap_info_t --
void pool_snap_info_t::dump(Formatter *f) const
string pg_log_entry_t::get_key_name() const
{
- char key[40];
- snprintf(key, sizeof(key), "%010u.%020llu", version.epoch, (long long unsigned)version.version);
- return string(key);
+ return version.get_key_name();
}
void pg_log_entry_t::encode_with_checksum(bufferlist& bl) const