Skip to content

Commit

Permalink
fixed one important bugs in redis pipeline mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengshuxin committed Jun 7, 2022
1 parent b04c80e commit 171777c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib_acl_cpp/include/acl_cpp/redis/redis_client_pipeline.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,15 @@ class redis_pipeline_message {
}

void set_request(size_t argc, const char** argv, size_t* lens) {
// When running in coroutine of shared stack mode,
// the variables on stack are volatile, so we should save
// the request data in heap.
#if 0
argc_ = argc;
argv_ = argv;
lens_ = lens;
#else
if (argc_ > size_) {
if (argc > size_) {
delete [] argv_;
delete [] lens_;
size_ = argc;
Expand Down

0 comments on commit 171777c

Please sign in to comment.