diff options
Diffstat (limited to 'src/mon/MonitorDBStore.h')
-rw-r--r-- | src/mon/MonitorDBStore.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mon/MonitorDBStore.h b/src/mon/MonitorDBStore.h index 100762423e3..9950ec87ca5 100644 --- a/src/mon/MonitorDBStore.h +++ b/src/mon/MonitorDBStore.h @@ -406,12 +406,18 @@ class MonitorDBStore } virtual bool exists(const string& prefix, const string& key) { + bufferlist bl; + int err = get(prefix, key, bl); + return err >= 0; + + /* KeyValueDB::Iterator it = db->get_iterator(prefix); int err = it->lower_bound(key); if (err < 0) return false; return (it->valid() && it->key() == key); + */ } virtual bool exists(const string& prefix, version_t ver) { |