]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ReplicatedPG: have make_writeable adjust backfill_pos
authorSamuel Just <sam.just@inktank.com>
Sat, 26 Oct 2013 00:58:10 +0000 (17:58 -0700)
committerSamuel Just <sam.just@inktank.com>
Mon, 28 Oct 2013 20:34:16 +0000 (13:34 -0700)
commit3d0d69fed09675fc466f6c5b2736ba674923823d
tree7fe11c9c13fc106bfc256632efae498b90ffbb10
parent3de32bd3688cece81e6b5e2b6d2ad758d9d72115
ReplicatedPG: have make_writeable adjust backfill_pos

If we are writing to backfill_pos and create a clone, we end
up failing to send the transaction creating the clone to the
backfill peer.  This is fine as long as we end up backfilling
the clone.  To that end, we simply add the clone to
backfill_info and adjust backfill_pos accordingly.  This is less
brittle than the waiting_for_backfill_pos mechanism since it
works even if we wait between that check and issuing the repop,
which can happen for copy_from.

Signed-off-by: Samuel Just <sam.just@inktank.com>
src/osd/ReplicatedPG.cc