From bb52b1872572ccfe3212e7129050e9d75f87b524 Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Wed, 28 Dec 2011 16:33:14 -0800 Subject: [PATCH] rgw: fix cache interface (was not overloading method) --- src/rgw/rgw_cache.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rgw/rgw_cache.h b/src/rgw/rgw_cache.h index 1fb8a4807720f..ea0b6537f0833 100644 --- a/src/rgw/rgw_cache.h +++ b/src/rgw/rgw_cache.h @@ -176,7 +176,7 @@ public: map* rmattrs); int put_obj_data(void *ctx, rgw_obj& obj, const char *data, - off_t ofs, size_t len); + off_t ofs, size_t len, bool exclusive); int get_obj(void *ctx, void **handle, rgw_obj& obj, char **data, off_t ofs, off_t end); @@ -310,7 +310,7 @@ int RGWCache::put_obj_meta(void *ctx, rgw_obj& obj, uint64_t size, time_t *mt template int RGWCache::put_obj_data(void *ctx, rgw_obj& obj, const char *data, - off_t ofs, size_t len) + off_t ofs, size_t len, bool exclusive) { rgw_bucket bucket; string oid; @@ -327,7 +327,7 @@ int RGWCache::put_obj_data(void *ctx, rgw_obj& obj, const char *data, info.status = 0; info.flags = CACHE_FLAG_DATA; } - int ret = T::put_obj_data(ctx, obj, data, ofs, len); + int ret = T::put_obj_data(ctx, obj, data, ofs, len, exclusive); if (cacheable) { string name = normal_name(bucket, oid); if (ret >= 0) { -- 2.39.5