]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ObjectCacher: begin at the right place when iterating over BufferHeads
authorJosh Durgin <josh.durgin@inktank.com>
Thu, 15 Nov 2012 18:41:32 +0000 (10:41 -0800)
committerJosh Durgin <josh.durgin@inktank.com>
Fri, 16 Nov 2012 23:22:38 +0000 (15:22 -0800)
commitfdadefe331594741a99c70858b9b21111e4a21d6
tree12ae3f89b9f76421b6c3e5dae0a23bd280eae092
parent20a0c56da65648d1a8c0af77116b1329d5c7d81e
ObjectCacher: begin at the right place when iterating over BufferHeads

If the desired offset overlaps a BH, data.lower_bound() will return
the element after it, since it's indexed by the start of a range.

The confusingly similarly named data_lower_bound() method fixes this,
and returns the correct starting element.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
src/osdc/ObjectCacher.cc