]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: fix PG::copy_after vs backlog
authorSage Weil <sage.weil@dreamhost.com>
Wed, 21 Sep 2011 22:46:37 +0000 (15:46 -0700)
committerSage Weil <sage.weil@dreamhost.com>
Wed, 21 Sep 2011 23:27:06 +0000 (16:27 -0700)
commit68fe748fc2d703623050e8f2a448a0fd31ca8a0f
tree8b2e3d549f8cd208d81bbbc7e20e8312f7f9e3d2
parentca63faf55152349f2f908c949b495eabfb0b630d
osd: fix PG::copy_after vs backlog

If you call copy_after(..., 0) on a log with a backlog, you get all the
backlog entries, but no backlog flag.  That's invalid.  You either need
the _complete_ backlog + the flag, or no backlog entries; getting only
some of them is useless information.

Make copy_after stop when it hits the tail.  Callers who need the backlog
are already checking for that and copying the whole log as appropriate.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
src/osd/PG.cc