]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librados: move snapc creation to caller for aio_operate 170/head
authorJosh Durgin <josh.durgin@inktank.com>
Fri, 29 Mar 2013 19:46:27 +0000 (12:46 -0700)
committerJosh Durgin <josh.durgin@inktank.com>
Fri, 29 Mar 2013 19:47:17 +0000 (12:47 -0700)
commit4c4d5591bdb048cd9ffa25b529c6127356e7f9a7
tree27f3921c0c56fc91ca3f456a472fa5f8707b76e9
parentf1d1f1192637e5603bf59041f3756d5360823775
librados: move snapc creation to caller for aio_operate

The common case already has a snapshot context, so avoid duplicating
it (copying a potentially large vector) in IoCtxImpl::aio_operate().

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
src/librados/IoCtxImpl.cc
src/librados/IoCtxImpl.h
src/librados/librados.cc