Skip to content

Commit

Permalink
ds redis BUGFIX script error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Humblesaw authored and michalvasko committed Aug 19, 2024
1 parent eaf3583 commit 4630d11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/ds_redis.c
Original file line number Diff line number Diff line change
Expand Up @@ -2419,7 +2419,7 @@ srpds_load_and_del(redisContext *ctx, const char *mod_ns, const char *index_type
"for i=2,n do "
"reply2 = redis.pcall('DEL', reply[1][i][2]); "
"if reply2 ~= 1 then "
"return reply['err']; "
"return reply2['err']; "
"end "
"end "
"if reply[2] == 0 then break end "
Expand Down Expand Up @@ -2501,7 +2501,7 @@ srpds_load_and_copy(redisContext *ctx, const char *mod_ns, const char *index_typ
"index = string.find(reply[1][i][2],':',index+1); "
"reply2 = redis.pcall('COPY', reply[1][i][2], ARGV[1] .. string.sub(reply[1][i][2], index), 'REPLACE'); "
"if reply2 ~= 1 then "
"return reply['err']; "
"return reply2['err']; "
"end "
"end "
"if reply[2] == 0 then break end "
Expand Down

0 comments on commit 4630d11

Please sign in to comment.