Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitffc4836

Browse files
committed
Merge branch 'unstable' of github.com:huangz1990/annotated_redis_source into unstable
2 parents3fc63d0 +961a99a commitffc4836

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

‎src/networking.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ redisClient *createClient(int fd) {
6161
* contexts (for instance a Lua script) we need a non connected client. */
6262
// 因为 Redis 命令总在客户端的上下文中执行,
6363
// 有时候为了在服务器内部执行命令,需要使用伪客户端来执行命令
64-
// 在 fd == 1 时,创建的客户端为伪终端
64+
// 在 fd ==-1 时,创建的客户端为伪终端
6565
if (fd!=-1) {
6666
anetNonBlock(NULL,fd);
6767
anetTcpNoDelay(NULL,fd);

‎src/sds.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,9 @@ sds sdsdup(const sds s) {
104104
}
105105

106106
/*
107-
* 释放 sds 所对应的 sdshdr 结构的内存
108-
* 给定 sds 必须为 NULL
107+
* 释放 sds 所对应的 sdshdr 结构的内存。
108+
*
109+
* 如果 s 为 NULL ,那么不做动作。
109110
*
110111
* T = O(N)
111112
*/

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp