mirror of
https://github.com/fluencelabs/redis
synced 2025-06-12 00:31:21 +00:00
LRANGE converted into a COW friendly command. Some refactoring, comment, and new addReply*() family function added in the process.
This commit is contained in:
@ -595,7 +595,12 @@ unsigned char *ziplistIndex(unsigned char *zl, int index) {
|
||||
return (p[0] == ZIP_END || index > 0) ? NULL : p;
|
||||
}
|
||||
|
||||
/* Return pointer to next entry in ziplist. */
|
||||
/* Return pointer to next entry in ziplist.
|
||||
*
|
||||
* zl is the pointer to the ziplist
|
||||
* p is the pointer to the current element
|
||||
*
|
||||
* The element after 'p' is returned, otherwise NULL if we are at the end. */
|
||||
unsigned char *ziplistNext(unsigned char *zl, unsigned char *p) {
|
||||
((void) zl);
|
||||
|
||||
|
Reference in New Issue
Block a user