]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/ReplicatedPG: handle promote that races with snap deletion
authorSage Weil <sage@inktank.com>
Mon, 6 Jan 2014 00:02:19 +0000 (16:02 -0800)
committerSage Weil <sage@inktank.com>
Tue, 14 Jan 2014 00:19:48 +0000 (16:19 -0800)
commit7e80fa068e335db186398c57177844ae7eceeaeb
tree7c6fece4bfed570e50ea0cd99149e601ea271700
parentcd42368e3c6f27dd704103ced83d58ceff6586d7
osd/ReplicatedPG: handle promote that races with snap deletion

If we are promoting a clone and realize that the object is no longer
defined for any snaps, abort the copy and delete any temp object.

If the defined snaps have changed, make sure they are updated in memory
so that on promote completion the snapshot metadata is correct.

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