summaryrefslogtreecommitdiffstats
path: root/src/neorados/RADOS.cc
diff options
context:
space:
mode:
authorJason Dillaman <dillaman@redhat.com>2020-07-13 18:47:15 +0200
committerJason Dillaman <dillaman@redhat.com>2020-07-16 21:59:31 +0200
commit96c0c255ccf9ab234cb494d9032b3880d176e4d2 (patch)
treefa6c0c734cc720fa605097f2335b3150b3968221 /src/neorados/RADOS.cc
parentneorados: support blkin trace passing on execute calls (diff)
downloadceph-96c0c255ccf9ab234cb494d9032b3880d176e4d2.tar.xz
ceph-96c0c255ccf9ab234cb494d9032b3880d176e4d2.zip
neorados: fixed missing handling of read flags
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Diffstat (limited to 'src/neorados/RADOS.cc')
-rw-r--r--src/neorados/RADOS.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/neorados/RADOS.cc b/src/neorados/RADOS.cc
index b5f93c5a8e2..d01c67ae8bd 100644
--- a/src/neorados/RADOS.cc
+++ b/src/neorados/RADOS.cc
@@ -789,7 +789,7 @@ void RADOS::execute(const Object& o, const IOContext& _ioc, ReadOp&& _op,
auto oid = reinterpret_cast<const object_t*>(&o.impl);
auto ioc = reinterpret_cast<const IOContextImpl*>(&_ioc.impl);
auto op = reinterpret_cast<OpImpl*>(&_op.impl);
- auto flags = 0; // Should be in Op.
+ auto flags = op->op.flags;
ZTracer::Trace trace;
if (trace_info) {
@@ -811,7 +811,7 @@ void RADOS::execute(const Object& o, const IOContext& _ioc, WriteOp&& _op,
auto oid = reinterpret_cast<const object_t*>(&o.impl);
auto ioc = reinterpret_cast<const IOContextImpl*>(&_ioc.impl);
auto op = reinterpret_cast<OpImpl*>(&_op.impl);
- auto flags = 0; // Should be in Op.
+ auto flags = op->op.flags;
ceph::real_time mtime;
if (op->mtime)
mtime = *op->mtime;