diff options
author | Adam C. Emerson <aemerson@redhat.com> | 2017-12-23 05:56:24 +0100 |
---|---|---|
committer | Adam C. Emerson <aemerson@redhat.com> | 2018-01-10 20:02:09 +0100 |
commit | 16fec46e5b641cddce9ad879ed5a28a563342c52 (patch) | |
tree | a745fda88c02645fee5eaae484e611f3b5fd7d79 | |
parent | key_value_store: Use unqualified encode/decode (diff) | |
download | ceph-16fec46e5b641cddce9ad879ed5a28a563342c52.tar.xz ceph-16fec46e5b641cddce9ad879ed5a28a563342c52.zip |
kv: Use unqualified encode/decode
This is a portion of the namespace project.
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
-rw-r--r-- | src/kv/KeyValueDB.h | 10 | ||||
-rw-r--r-- | src/kv/MemDB.cc | 4 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/kv/KeyValueDB.h b/src/kv/KeyValueDB.h index 60e32254e09..0b5b061b6aa 100644 --- a/src/kv/KeyValueDB.h +++ b/src/kv/KeyValueDB.h @@ -54,12 +54,12 @@ public: ) { bufferlist::iterator p = to_set_bl.begin(); uint32_t num; - ::decode(num, p); + decode(num, p); while (num--) { string key; bufferlist value; - ::decode(key, p); - ::decode(value, p); + decode(key, p); + decode(value, p); set(prefix, key, value); } } @@ -85,10 +85,10 @@ public: ) { bufferlist::iterator p = keys_bl.begin(); uint32_t num; - ::decode(num, p); + decode(num, p); while (num--) { string key; - ::decode(key, p); + decode(key, p); rmkey(prefix, key); } } diff --git a/src/kv/MemDB.cc b/src/kv/MemDB.cc index 7e5ffac46f7..dc5afae45d4 100644 --- a/src/kv/MemDB.cc +++ b/src/kv/MemDB.cc @@ -53,8 +53,8 @@ static string make_key(const string &prefix, const string &value) void MemDB::_encode(mdb_iter_t iter, bufferlist &bl) { - ::encode(iter->first, bl); - ::encode(iter->second, bl); + encode(iter->first, bl); + encode(iter->second, bl); } std::string MemDB::_get_data_fn() |