Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3fc63d0 + 961a99a commit ffc4836Copy full SHA for ffc4836
src/networking.c
@@ -61,7 +61,7 @@ redisClient *createClient(int fd) {
61
* contexts (for instance a Lua script) we need a non connected client. */
62
// 因为 Redis 命令总在客户端的上下文中执行,
63
// 有时候为了在服务器内部执行命令,需要使用伪客户端来执行命令
64
- // 在 fd == 1 时,创建的客户端为伪终端
+ // 在 fd == -1 时,创建的客户端为伪终端
65
if (fd != -1) {
66
anetNonBlock(NULL,fd);
67
anetTcpNoDelay(NULL,fd);
src/sds.c
@@ -104,8 +104,9 @@ sds sdsdup(const sds s) {
104
}
105
106
/*
107
- * 释放 sds 所对应的 sdshdr 结构的内存
108
- * 给定 sds 必须为 NULL
+ * 释放 sds 所对应的 sdshdr 结构的内存。
+ *
109
+ * 如果 s 为 NULL ,那么不做动作。
110
*
111
* T = O(N)
112
*/
0 commit comments