mirror of
https://github.com/ceph/ceph
synced 2025-01-29 22:43:40 +00:00
Merge branch 'wip-11786'
Reviewed-by: Kefu Chai <kchai@redhat.com> Reviewed-by: Sage Weil <sage@redhat.com>
This commit is contained in:
commit
f735a9905c
@ -448,11 +448,13 @@ class MonitorDBStore
|
||||
|
||||
virtual pair<string,string> get_next_key() {
|
||||
assert(iter->valid());
|
||||
pair<string,string> r = iter->raw_key();
|
||||
do {
|
||||
iter->next();
|
||||
} while (iter->valid() && sync_prefixes.count(iter->raw_key().first) == 0);
|
||||
return r;
|
||||
|
||||
for (; iter->valid(); iter->next()) {
|
||||
pair<string,string> r = iter->raw_key();
|
||||
if (sync_prefixes.count(r.first) > 0)
|
||||
return r;
|
||||
}
|
||||
return pair<string,string>();
|
||||
}
|
||||
|
||||
virtual bool _is_valid() {
|
||||
|
Loading…
Reference in New Issue
Block a user