mirror of
https://github.com/ceph/ceph
synced 2024-12-19 01:46:00 +00:00
os/LevelDBStore.h: pass const string by reference to past_prefix()
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
This commit is contained in:
parent
ea7907fc2b
commit
b8711633e9
@ -185,7 +185,7 @@ public:
|
||||
return (key.compare(leveldb::Slice(past_prefix(prefix))) < 0) &&
|
||||
(key.compare(leveldb::Slice(prefix)) > 0);
|
||||
}
|
||||
static string past_prefix(const string prefix) {
|
||||
static string past_prefix(const string &prefix) {
|
||||
string limit = prefix;
|
||||
limit.push_back(1);
|
||||
return limit;
|
||||
|
Loading…
Reference in New Issue
Block a user