]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon: MonitorDBStore: get_next_key() only if prefix matches
authorJoao Eduardo Luis <joao@suse.de>
Wed, 27 May 2015 21:28:49 +0000 (22:28 +0100)
committerJoao Eduardo Luis <joao@redhat.com>
Mon, 27 Jul 2015 21:04:27 +0000 (22:04 +0100)
commitd52187019d321fe8a2dc54fe8a67a5139c310db1
tree98e39fd4c98f45f0c0680367f062319600b05686
parentabe6c03d411f5f1d277f910ae87123309fa95d4a
mon: MonitorDBStore: get_next_key() only if prefix matches

get_next_key() had a bug in which we would always return the first key
from the iterator, regardless of whether its prefix had been specified
to the iterator.

Fixes: #11786
Signed-off-by: Joao Eduardo Luis <joao@suse.de>
(cherry picked from commit 2cc7aee1abe40453093306c8fef2312b650dff5d)
src/mon/MonitorDBStore.h