]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
neorados: fixed missing handling of read flags
authorJason Dillaman <dillaman@redhat.com>
Mon, 13 Jul 2020 16:47:15 +0000 (12:47 -0400)
committerJason Dillaman <dillaman@redhat.com>
Thu, 16 Jul 2020 19:59:31 +0000 (15:59 -0400)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/neorados/RADOS.cc

index b5f93c5a8e21450c4e8b34fb79e01d0333573b23..d01c67ae8bd54bc8ad2d059e0f4e978490a0cbde 100644 (file)
@@ -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;