]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd/ReplicatedPG: skip promote for DELETE
authorSage Weil <sage@inktank.com>
Wed, 23 Oct 2013 02:56:55 +0000 (19:56 -0700)
committerSage Weil <sage@inktank.com>
Sat, 14 Dec 2013 00:35:54 +0000 (16:35 -0800)
commit0b81ff68c04b8e9c1c66720d4160311998528ca6
treec44bd7c58b770783924649d204ca01c713663957
parent4c014eddbe754daf0fac3ec05313b245687e22c1
osd/ReplicatedPG: skip promote for DELETE

If an op starts with DELETE there is no need to promote the old content
from the base tier.  Note that this only works if the FAILOK flag is
set.  Otherwise, we need to know whether the object existed or not to
return either 0 or -ENOENT.

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