mirror of
http://github.com/valkey-io/valkey
synced 2024-11-21 16:46:15 +00:00
Fix typo in comment (#318)
Signed-off-by: Vitah Lin <vitahlin@gmail.com>
This commit is contained in:
parent
fc5bf6a0ef
commit
1221b3951a
@ -64,7 +64,7 @@ size_t getStringObjectSdsUsedMemory(robj *o) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Return the length of a string object.
|
/* Return the length of a string object.
|
||||||
* This does NOT includes internal fragmentation or sds unused space. */
|
* This does NOT include internal fragmentation or sds unused space. */
|
||||||
size_t getStringObjectLen(robj *o) {
|
size_t getStringObjectLen(robj *o) {
|
||||||
serverAssertWithInfo(NULL,o,o->type == OBJ_STRING);
|
serverAssertWithInfo(NULL,o,o->type == OBJ_STRING);
|
||||||
switch(o->encoding) {
|
switch(o->encoding) {
|
||||||
@ -98,8 +98,7 @@ void linkClient(client *c) {
|
|||||||
raxInsert(server.clients_index,(unsigned char*)&id,sizeof(id),c,NULL);
|
raxInsert(server.clients_index,(unsigned char*)&id,sizeof(id),c,NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Initialize client authentication state.
|
/* Initialize client authentication state. */
|
||||||
*/
|
|
||||||
static void clientSetDefaultAuth(client *c) {
|
static void clientSetDefaultAuth(client *c) {
|
||||||
/* If the default user does not require authentication, the user is
|
/* If the default user does not require authentication, the user is
|
||||||
* directly authenticated. */
|
* directly authenticated. */
|
||||||
|
Loading…
Reference in New Issue
Block a user