summaryrefslogtreecommitdiffstats
path: root/src/librados
diff options
context:
space:
mode:
authorSage Weil <sage@redhat.com>2016-03-11 19:19:34 +0100
committerSage Weil <sage@redhat.com>2016-04-04 16:28:56 +0200
commit4a88a7f1ce04c7c4a8b992a0d51a0a022f34678e (patch)
treebb868ad6532e052fae1dff45313a44a6fc167260 /src/librados
parentosdc/Objecter: fix narrow race with tid assignment (diff)
downloadceph-4a88a7f1ce04c7c4a8b992a0d51a0a022f34678e.tar.xz
ceph-4a88a7f1ce04c7c4a8b992a0d51a0a022f34678e.zip
librados: fix narrow race with tid return value assignment
The completion should be done by the time op_submit returns. Signed-off-by: Sage Weil <sage@redhat.com>
Diffstat (limited to 'src/librados')
-rw-r--r--src/librados/IoCtxImpl.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librados/IoCtxImpl.cc b/src/librados/IoCtxImpl.cc
index a1479d1184a..dc2eeca2463 100644
--- a/src/librados/IoCtxImpl.cc
+++ b/src/librados/IoCtxImpl.cc
@@ -745,7 +745,7 @@ int librados::IoCtxImpl::aio_operate_read(const object_t &oid,
Objecter::Op *objecter_op = objecter->prepare_read_op(oid, oloc,
*o, snap_seq, pbl, flags,
onack, &c->objver);
- c->tid = objecter->op_submit(objecter_op);
+ objecter->op_submit(objecter_op, &c->tid);
return 0;
}