]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librados, osd: add flags to COPY_FROM
authorSage Weil <sage@inktank.com>
Fri, 13 Dec 2013 21:35:25 +0000 (13:35 -0800)
committerSage Weil <sage@inktank.com>
Wed, 18 Dec 2013 19:26:51 +0000 (11:26 -0800)
commit8dec2b27356d49daaaab6c90bf32f49c1c0b66be
tree376890058e8fa72d6b00097eaf76776fc57d074f
parent0dc59af993e02c8114d2827538b090d10ff7256b
librados, osd: add flags to COPY_FROM

If we initiate a COPY_FROM as part of a FLUSH operation, we will need to
set a flag so that the read-side of the copy and join the existing
in-progress operation without taknig additional locks.

Similarly, we need to pass flags from the client indicating whether we
should ignore overlay or cache logic while performing the copy.  These are
used by the promote and flush logic.

Note that none of these flags are exposed through librados (at least not
at this time).

Signed-off-by: Sage Weil <sage@inktank.com>
src/include/rados.h
src/include/rados/librados.hpp
src/librados/librados.cc
src/osd/ReplicatedPG.cc
src/osd/ReplicatedPG.h
src/osd/osd_types.cc
src/osdc/Objecter.h