diff options
author | Casey Bodley <cbodley@redhat.com> | 2018-01-12 19:41:50 +0100 |
---|---|---|
committer | Casey Bodley <cbodley@redhat.com> | 2018-01-12 20:49:21 +0100 |
commit | 4f72b20f09fcbe0cec0cdfd020ca370d6707fc8d (patch) | |
tree | fc0b635fd2ffd405203354cc803357918f5301c2 /src/rgw/rgw_cache.h | |
parent | rgw: rgw_put_system_obj takes bufferlist (diff) | |
download | ceph-4f72b20f09fcbe0cec0cdfd020ca370d6707fc8d.tar.xz ceph-4f72b20f09fcbe0cec0cdfd020ca370d6707fc8d.zip |
rgw: RGWRados::put_system_obj takes const bufferlist
Signed-off-by: Casey Bodley <cbodley@redhat.com>
Diffstat (limited to 'src/rgw/rgw_cache.h')
-rw-r--r-- | src/rgw/rgw_cache.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rgw/rgw_cache.h b/src/rgw/rgw_cache.h index 3089723913d..4691232d03d 100644 --- a/src/rgw/rgw_cache.h +++ b/src/rgw/rgw_cache.h @@ -233,10 +233,10 @@ public: RGWObjVersionTracker *objv_tracker); int put_system_obj_impl(rgw_raw_obj& obj, uint64_t size, real_time *mtime, map<std::string, bufferlist>& attrs, int flags, - bufferlist& data, + const bufferlist& data, RGWObjVersionTracker *objv_tracker, real_time set_mtime) override; - int put_system_obj_data(void *ctx, rgw_raw_obj& obj, bufferlist& bl, off_t ofs, bool exclusive, + int put_system_obj_data(void *ctx, rgw_raw_obj& obj, const bufferlist& bl, off_t ofs, bool exclusive, RGWObjVersionTracker *objv_tracker = nullptr) override; int get_system_obj(RGWObjectCtx& obj_ctx, RGWRados::SystemObject::Read::GetObjState& read_state, @@ -393,7 +393,7 @@ int RGWCache<T>::system_obj_set_attrs(void *ctx, rgw_raw_obj& obj, template <class T> int RGWCache<T>::put_system_obj_impl(rgw_raw_obj& obj, uint64_t size, real_time *mtime, map<std::string, bufferlist>& attrs, int flags, - bufferlist& data, + const bufferlist& data, RGWObjVersionTracker *objv_tracker, real_time set_mtime) { @@ -431,7 +431,7 @@ int RGWCache<T>::put_system_obj_impl(rgw_raw_obj& obj, uint64_t size, real_time } template <class T> -int RGWCache<T>::put_system_obj_data(void *ctx, rgw_raw_obj& obj, bufferlist& data, off_t ofs, bool exclusive, +int RGWCache<T>::put_system_obj_data(void *ctx, rgw_raw_obj& obj, const bufferlist& data, off_t ofs, bool exclusive, RGWObjVersionTracker *objv_tracker) { rgw_pool pool; |