summaryrefslogtreecommitdiffstats
path: root/src/librados/librados_cxx.cc
diff options
context:
space:
mode:
authormyoungwon oh <ohmyoungwon@gmail.com>2020-04-21 11:36:21 +0200
committermyoungwon oh <ohmyoungwon@gmail.com>2020-06-14 08:45:16 +0200
commitede9164db040a55a20130b7c27ea7e267f99a20b (patch)
tree4dde210981553bf35ace3bb2265ddb8bff56854b /src/librados/librados_cxx.cc
parentosd: add refcounting chunks for snapshotted manifest object (diff)
downloadceph-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.cc14
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);