]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
DBObjectMap: fix next_parent()
authorSamuel Just <sjust@redhat.com>
Fri, 10 Feb 2017 23:48:57 +0000 (15:48 -0800)
committerDavid Zafman <dzafman@redhat.com>
Tue, 28 Mar 2017 16:32:46 +0000 (09:32 -0700)
commita3c3e3ef4e3d20baf28000f11b4ea5bb45e161f9
treec5459e96fe890e49e20cfa71e7b1ee5d6df185f9
parent86881dd361e21e3e4553b416331ca393e88b7a3e
DBObjectMap: fix next_parent()

The previous implementation assumed that
lower_bound(parent_iter->key()) always leaves the iterator
on_parent().  There isn't any guarantee, however, that that
key isn't present on the child as well.

Signed-off-by: Samuel Just <sjust@redhat.com>
(cherry picked from commit 74a7631d0938d7b44894f022224eab10a90d5cec)
src/os/filestore/DBObjectMap.cc