]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
MOSDOpReply: add enough fields to be backwards compatible.
authorGreg Farnum <greg@inktank.com>
Tue, 27 Aug 2013 18:02:44 +0000 (11:02 -0700)
committerGreg Farnum <greg@inktank.com>
Wed, 28 Aug 2013 00:24:50 +0000 (17:24 -0700)
commitde20997445803dca4225ed0dac1bad6a8a1e6512
treec0fee2aa494a86b614b4857d6ee2a30549d553e6
parentdc9d3fc357ab0b638620a90139a58b2c092330bb
MOSDOpReply: add enough fields to be backwards compatible.

The system we've been building up works out very nicely for new clients,
but they could not have interoperated with old clients that were only
referring to our replay_version. In order to deal with this, we add
a bad_replay_version to MOSDOpReply which is encoded where we used
to encode replay_version. bad_replay_version will follow the same semantics
as reassert_version used to (except that it is filled in on reads), but
is not accessible to new clients, who can see only our properly-controlled
replay_version and user_version. This will let old and new clients
interoperate correctly when communicating about watches, etc.

Signed-off-by: Greg Farnum <greg@inktank.com>
src/messages/MOSDOpReply.h