Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
a1f8e22b
Commit
a1f8e22b
authored
Apr 26, 2016
by
Dvir Volk
Committed by
antirez
May 10, 2016
Browse files
fixed return value of HashGet (and a slight error in the documentation)
parent
02c4a6c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/module.c
View file @
a1f8e22b
...
...
@@ -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
;
}
/* --------------------------------------------------------------------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment