diff options
author | myoungwon oh <ohmyoungwon@gmail.com> | 2020-04-21 11:36:21 +0200 |
---|---|---|
committer | myoungwon oh <ohmyoungwon@gmail.com> | 2020-06-14 08:45:16 +0200 |
commit | ede9164db040a55a20130b7c27ea7e267f99a20b (patch) | |
tree | 4dde210981553bf35ace3bb2265ddb8bff56854b /src/librados/librados_cxx.cc | |
parent | osd: add refcounting chunks for snapshotted manifest object (diff) | |
download | ceph-ede9164db040a55a20130b7c27ea7e267f99a20b.tar.xz ceph-ede9164db040a55a20130b7c27ea7e267f99a20b.zip |
osd: change tier-flush's operation type to ReadOperation
existing flush is the ReadOperation in order to flush older
clone that head.
Like existing flush, change tier-flush's type to ReadOperation
Signed-off-by: Myoungwon Oh <ohmyoungwon@gmail.com>
Diffstat (limited to 'src/librados/librados_cxx.cc')
-rw-r--r-- | src/librados/librados_cxx.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/librados/librados_cxx.cc b/src/librados/librados_cxx.cc index bc399ea82e5..38144ad17c8 100644 --- a/src/librados/librados_cxx.cc +++ b/src/librados/librados_cxx.cc @@ -631,6 +631,13 @@ void librados::ObjectReadOperation::cache_evict() o->cache_evict(); } +void librados::ObjectReadOperation::tier_flush() +{ + ceph_assert(impl); + ::ObjectOperation *o = &impl->o; + o->tier_flush(); +} + void librados::ObjectWriteOperation::set_redirect(const std::string& tgt_obj, const IoCtx& tgt_ioctx, uint64_t tgt_version, @@ -669,13 +676,6 @@ void librados::ObjectWriteOperation::unset_manifest() o->unset_manifest(); } -void librados::ObjectWriteOperation::tier_flush() -{ - ceph_assert(impl); - ::ObjectOperation *o = &impl->o; - o->tier_flush(); -} - void librados::ObjectWriteOperation::tmap_update(const bufferlist& cmdbl) { ceph_assert(impl); |