]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librados: use caller provided snapid for aio_sparse_read() 9116/head
authorDavid Disseldorp <ddiss@suse.de>
Tue, 3 May 2016 15:54:36 +0000 (17:54 +0200)
committerDavid Disseldorp <ddiss@suse.de>
Fri, 13 May 2016 09:30:22 +0000 (11:30 +0200)
...instead of the value set via set_snap_read(). This makes
aio_sparse_read() consistent with aio_read(), which also accepts a
snapid parameter.

Signed-off-by: David Disseldorp <ddiss@suse.de>
src/librados/IoCtxImpl.cc

index ccbf897aac9eedf44f7bc97c36840be88c2ff5b7..b5df5f2256db5d2a6df8faef2e098bf36bbde474 100644 (file)
@@ -863,7 +863,7 @@ int librados::IoCtxImpl::aio_sparse_read(const object_t oid,
 
   Objecter::Op *o = objecter->prepare_read_op(
     oid, oloc,
-    onack->m_ops, snap_seq, NULL, 0,
+    onack->m_ops, snapid, NULL, 0,
     onack, &c->objver);
   objecter->op_submit(o, &c->tid);
   return 0;