Commit a1f8e22b authored by Dvir Volk's avatar Dvir Volk Committed by antirez
Browse files

fixed return value of HashGet (and a slight error in the documentation)

parent 02c4a6c7
......@@ -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;
}
/* --------------------------------------------------------------------------
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment