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

This commit is contained in:
Dvir Volk 2016-04-26 18:06:20 +03:00 committed by antirez
parent 02c4a6c7f9
commit a1f8e22b79

View File

@ -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;
}
/* --------------------------------------------------------------------------