summaryrefslogtreecommitdiffstats
path: root/src/tools/immutable_object_cache/CacheClient.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/immutable_object_cache/CacheClient.cc')
-rw-r--r--src/tools/immutable_object_cache/CacheClient.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/tools/immutable_object_cache/CacheClient.cc b/src/tools/immutable_object_cache/CacheClient.cc
index d378992719c..e4ed6cb0ed0 100644
--- a/src/tools/immutable_object_cache/CacheClient.cc
+++ b/src/tools/immutable_object_cache/CacheClient.cc
@@ -113,12 +113,13 @@ namespace immutable_obj_cache {
}
void CacheClient::lookup_object(std::string pool_nspace, uint64_t pool_id,
- uint64_t snap_id, std::string oid,
+ uint64_t snap_id, uint64_t object_size,
+ std::string oid,
CacheGenContextURef&& on_finish) {
ldout(m_cct, 20) << dendl;
ObjectCacheRequest* req = new ObjectCacheReadData(RBDSC_READ,
- ++m_sequence_id, 0, 0,
- pool_id, snap_id, oid, pool_nspace);
+ ++m_sequence_id, 0, 0, pool_id,
+ snap_id, object_size, oid, pool_nspace);
req->process_msg = std::move(on_finish);
req->encode();