Fix clang warnings/errors
This commit is contained in:
+1
-1
@@ -546,7 +546,7 @@ void kv_cli_t::handle_cmd(const std::vector<std::string> & cmd, std::function<vo
|
||||
auto & key = cmd[1];
|
||||
if (opname == "get")
|
||||
{
|
||||
db->get(key, [this, cb](int res, const std::string & value)
|
||||
db->get(key, [cb](int res, const std::string & value)
|
||||
{
|
||||
if (res < 0)
|
||||
fprintf(stderr, "Error: %s (code %d)\n", strerror(-res), res);
|
||||
|
||||
+1
-1
@@ -1448,7 +1448,7 @@ void kv_op_t::update()
|
||||
|
||||
void kv_op_t::update_find()
|
||||
{
|
||||
get_block(db, cur_block, cur_level, recheck_policy, [=, checked_block = cur_block](int res, int refresh)
|
||||
get_block(db, cur_block, cur_level, recheck_policy, [=](int res, int refresh)
|
||||
{
|
||||
res = handle_block(res, refresh, true);
|
||||
if (res == -EAGAIN)
|
||||
|
||||
Reference in New Issue
Block a user