Fixes: http://tracker.ceph.com/issues/24346
Signed-off-by: Casey Bodley <cbodley@redhat.com>
auto [iter, inserted] = cache_map.emplace(name, ObjectCacheEntry{});
ObjectCacheEntry& entry = iter->second;
+ entry.info.time_added = ceph::coarse_mono_clock::now();
if (inserted) {
entry.lru_iter = lru.end();
}
map<string, bufferlist> rm_xattrs;
ObjectMetaInfo meta;
obj_version version = {};
- ceph::coarse_mono_time time_added = ceph::coarse_mono_clock::now();
+ ceph::coarse_mono_time time_added;
ObjectCacheInfo() = default;