]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
Objecter: librados: mass switch from eversion_t to version_t
authorGreg Farnum <greg@inktank.com>
Tue, 20 Aug 2013 21:21:04 +0000 (14:21 -0700)
committerGreg Farnum <greg@inktank.com>
Wed, 28 Aug 2013 00:24:49 +0000 (17:24 -0700)
commitff1a573025b13bae3eb464d5278fd6de77ee2750
treeb76ab62879636d8b36c5a8a0458723e249f4ff9f
parent931bf7e8a8d30550072767d9ca46c25d985c300c
Objecter: librados: mass switch from eversion_t to version_t

There are a lot of pointers throughout our request infrastructure used solely
for exporting the version to users. The interfaces we actually expose only
provide a uint64_t (leaving off eversion_t's epoch), and that's all we're
going to maintain in our new user_version scheme, so don't pretend we'll
have more in our internal interfaces.

I audited this pretty carefully; in particular:
Op::objver is only used for passing data back to users via the calling
functions IoCtxImpl::last_objver, etc
IoCtxImpl::last_objver is used only for the set_sync_op_version() call, which
provides data only for the uint64_t get_last_version() and
rados_get_last_version() calls.
AioCompletionImpl::objver is used only for the uint64_t get_version() call.
LingerOp::pobjver is used only for referencing things that are now version_t.

Signed-off-by: Greg Farnum <greg@inktank.com>
src/librados/AioCompletionImpl.h
src/librados/IoCtxImpl.cc
src/librados/IoCtxImpl.h
src/librados/librados.cc
src/osdc/Objecter.cc
src/osdc/Objecter.h