You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
int redisReaderGetReply(redisReader *r, void **reply) if (sdsrange(r->buf,r->pos,-1) < 0) {} after judging that the link is successful, execute hscan and return null
The text was updated successfully, but these errors were encountered:
My program restarts the redis connection and executes a command similar to HSCAN filekey:fileuuis 0 match trace:* count 10. The data is successfully traversed for the first time. When the program exits and restarts the second traversal, reply=NULL is returned. The problem lies in the code I mentioned above.
My program restarts the redis connection and executes a command similar to HSCAN filekey:fileuuis 0 match trace:* count 10. The data is successfully traversed for the first time. When the program exits and restarts the second traversal, reply=NULL is returned. The problem lies in the code I mentioned above.
/* Discard part of the buffer when we've consumed at least 1k, to avoid
* doing unnecessary calls to memmove() in sds.c. */
// if (r->pos >= 1024) {
// if (sdsrange(r->buf,r->pos,-1) < 0) {
// printf("get reply sdsrange < 0\n");
// return REDIS_ERR;
// }
// r->pos = 0;
// r->len = sdslen(r->buf);
// } Comment out this code and it will be fine
int redisReaderGetReply(redisReader *r, void **reply) if (sdsrange(r->buf,r->pos,-1) < 0) {} after judging that the link is successful, execute hscan and return null
The text was updated successfully, but these errors were encountered: