diff options
author | Dvir Volk <dvirsky@gmail.com> | 2016-04-26 18:06:20 +0300 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2016-05-10 06:40:09 +0200 |
commit | a1f8e22b790c8a392b8f6550b61226fa237f3314 (patch) | |
tree | b209201362a23b8d9941f0a00a1570612e548b82 | |
parent | 02c4a6c7f9b86cac0a79aeb5cda2b7e63f048636 (diff) | |
download | redis-a1f8e22b790c8a392b8f6550b61226fa237f3314.tar.gz |
fixed return value of HashGet (and a slight error in the documentation)
-rw-r--r-- | src/module.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/module.c b/src/module.c index 0e3fa23e9..43a914a9c 100644 --- a/src/module.c +++ b/src/module.c @@ -1603,7 +1603,7 @@ int RM_HashSet(RedisModuleKey *key, int flags, ...) { * Example of REDISMODULE_HASH_CFIELD: * * RedisModuleString *username, *hashedpass; - * RedisModule_HashGet(mykey,"username",&username,"hp",&hashedpass); + * RedisModule_HashGet(mykey,"username",&username,"hp",&hashedpass, NULL); * * Example of REDISMODULE_HASH_EXISTS: * @@ -1663,7 +1663,7 @@ int RM_HashGet(RedisModuleKey *key, int flags, ...) { if (flags & REDISMODULE_HASH_CFIELDS) decrRefCount(field); } va_end(ap); - return REDISMODULE_ERR; + return REDISMODULE_OK; } /* -------------------------------------------------------------------------- |