From addc032756e338731c528d5868cf73b71ea2598e Mon Sep 17 00:00:00 2001 From: antirez Date: Sat, 10 Mar 2012 10:36:51 +0100 Subject: [PATCH] Added a top-function comment to rioWriteHashIteratorCursor() to better specify what the function does. Not immediately clear from the name. --- src/aof.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/aof.c b/src/aof.c index 03e32491..64cd76d3 100644 --- a/src/aof.c +++ b/src/aof.c @@ -609,6 +609,12 @@ int rewriteSortedSetObject(rio *r, robj *key, robj *o) { return 1; } +/* Write either the key or the value of the currently selected item of an hash. + * The 'hi' argument passes a valid Redis hash iterator. + * The 'what' filed specifies if to write a key or a value and can be + * either REDIS_HASH_KEY or REDIS_HASH_VALUE. + * + * The function returns 0 on error, non-zero on success. */ static int rioWriteHashIteratorCursor(rio *r, hashTypeIterator *hi, int what) { if (hi->encoding == REDIS_ENCODING_ZIPLIST) { unsigned char *vstr = NULL; -- 2.45.2