]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/ReplicatedPG: set version, user_version correctly on reads
authorSage Weil <sage@inktank.com>
Wed, 28 Aug 2013 23:29:16 +0000 (16:29 -0700)
committerSage Weil <sage@inktank.com>
Thu, 29 Aug 2013 00:05:10 +0000 (17:05 -0700)
commitc8dcd2ea715c5f838b6460f6aae77393e9df2954
tree042f496a8a38146859a35fafed7bbc42c2ecadcd
parent9374dc8bf33229e847965a318bd6ef1e8690322f
osd/ReplicatedPG: set version, user_version correctly on reads

Set the user version to the *current* object version, not the version
we would use if we were to modify it.  We move the assignments inside
the reply (read or error) block to make it more obvious which paths
are possible.

Signed-off-by: Sage Weil <sage@inktank.com>
src/osd/ReplicatedPG.cc