Fix unused variable in release build
Summary: Pull Request resolved: https://github.com/facebook/rocksdb/pull/6237 Differential Revision: D19210304 Pulled By: pdillinger fbshipit-source-id: f6f050e995f4d210f812bb1d2020adbd751e1d5a
This commit is contained in:
parent
d4da412864
commit
22fea0ba79
@ -417,13 +417,12 @@ extern inline std::string Key(int64_t val) {
|
|||||||
|
|
||||||
// Given a string key, map it to an index into the expected values buffer
|
// Given a string key, map it to an index into the expected values buffer
|
||||||
extern inline bool GetIntVal(std::string big_endian_key, uint64_t* key_p) {
|
extern inline bool GetIntVal(std::string big_endian_key, uint64_t* key_p) {
|
||||||
size_t levels = key_gen_ctx.weights.size();
|
|
||||||
size_t size_key = big_endian_key.size();
|
size_t size_key = big_endian_key.size();
|
||||||
std::vector<uint64_t> prefixes;
|
std::vector<uint64_t> prefixes;
|
||||||
|
|
||||||
// Trim the key to multiple of 8 bytes
|
// Trim the key to multiple of 8 bytes
|
||||||
size_key &= ~7;
|
size_key &= ~7;
|
||||||
assert(size_key <= levels * sizeof(uint64_t));
|
assert(size_key <= key_gen_ctx.weights.size() * sizeof(uint64_t));
|
||||||
|
|
||||||
// Pad with zeros to make it a multiple of 8. This function may be called
|
// Pad with zeros to make it a multiple of 8. This function may be called
|
||||||
// with a prefix, in which case we return the first index that falls
|
// with a prefix, in which case we return the first index that falls
|
||||||
|
Loading…
Reference in New Issue
Block a user