]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/ReplicatedPG: refuse to flush when older dirty clones are present
authorSage Weil <sage@inktank.com>
Fri, 27 Dec 2013 21:42:54 +0000 (13:42 -0800)
committerSage Weil <sage@inktank.com>
Tue, 14 Jan 2014 00:19:43 +0000 (16:19 -0800)
commitc91166eca022de7ac2dd73894af0ea5517fc8b71
treeafa95ef19b1100f287ce86634f954c65c53eeca5
parent6bff648de9503a0a4d3df95a1b3ed0796f8585e0
osd/ReplicatedPG: refuse to flush when older dirty clones are present

If the next oldest clone is dirty, we cannot flush.  That is, we must
always flush starting with the oldest dirty clone.

Note that we can never have a sequence like dirty -> clean -> dirty,
because clones are only dirty on creation, are created in order, and cannot
be flushed (cleaned) out of order.  Thus checking the previous clone is
sufficient (and thankfully cheap).

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