mirror of
https://github.com/fluencelabs/redis
synced 2025-03-21 10:00:51 +00:00
fixed return value of HashGet (and a slight error in the documentation)
This commit is contained in:
parent
02c4a6c7f9
commit
a1f8e22b79
@ -1603,7 +1603,7 @@ int RM_HashSet(RedisModuleKey *key, int flags, ...) {
|
|||||||
* Example of REDISMODULE_HASH_CFIELD:
|
* Example of REDISMODULE_HASH_CFIELD:
|
||||||
*
|
*
|
||||||
* RedisModuleString *username, *hashedpass;
|
* RedisModuleString *username, *hashedpass;
|
||||||
* RedisModule_HashGet(mykey,"username",&username,"hp",&hashedpass);
|
* RedisModule_HashGet(mykey,"username",&username,"hp",&hashedpass, NULL);
|
||||||
*
|
*
|
||||||
* Example of REDISMODULE_HASH_EXISTS:
|
* Example of REDISMODULE_HASH_EXISTS:
|
||||||
*
|
*
|
||||||
@ -1663,7 +1663,7 @@ int RM_HashGet(RedisModuleKey *key, int flags, ...) {
|
|||||||
if (flags & REDISMODULE_HASH_CFIELDS) decrRefCount(field);
|
if (flags & REDISMODULE_HASH_CFIELDS) decrRefCount(field);
|
||||||
}
|
}
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
return REDISMODULE_ERR;
|
return REDISMODULE_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --------------------------------------------------------------------------
|
/* --------------------------------------------------------------------------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user