]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
Objecter: add a way to chain callbacks
authorJosh Durgin <josh.durgin@inktank.com>
Fri, 7 Feb 2014 03:55:30 +0000 (19:55 -0800)
committerJosh Durgin <josh.durgin@inktank.com>
Tue, 18 Feb 2014 20:34:33 +0000 (12:34 -0800)
commitf68b706e5e9ac48c5444b93966c32cc603e5c6ac
tree3d4e10e0d2d78d72e284308cfd1cd4a88530c863
parent2543cde79326088da232c1ce1a45287dbdb4397a
Objecter: add a way to chain callbacks

The librados C api needs to do extra things like converting c++ data
structures or setting lengths, but some objecter operations already
have out_handlers that librados shouldn't override.

Add a method that chains contexts together by using a new context that
calls both the original and the newly added one.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
src/osdc/Objecter.h