Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix bug in del function of redis_proxy #489

Merged
merged 14 commits into from
Mar 5, 2020
4 changes: 2 additions & 2 deletions src/redis_protocol/proxy_lib/redis_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,7 @@ void redis_parser::del_internal(message_entry &entry)
simple_error_reply(entry,
"internal error " + std::to_string(rrdb_response.error));
} else {
simple_integer_reply(entry, -1);
simple_integer_reply(entry, 1);
levy5307 marked this conversation as resolved.
Show resolved Hide resolved
}
}
};
Expand Down Expand Up @@ -719,7 +719,7 @@ void redis_parser::del_geo_internal(message_entry &entry)
if (PERR_OK != ec) {
simple_error_reply(entry, _geo_client->get_error_string(ec));
} else {
simple_ok_reply(entry);
simple_integer_reply(entry, 1);
}
};
_geo_client->async_del(redis_request.sub_requests[1].data.to_string(), // key => hash_key
Expand Down