Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Turbo码先生
redis
提交
fd08839a
R
redis
项目概览
Turbo码先生
/
redis
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
redis
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
fd08839a
编写于
8月 06, 2015
作者:
A
antirez
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Client structure comments improved.
上级
3e6d4d59
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
27 addition
and
27 deletion
+27
-27
src/server.h
src/server.h
+27
-27
未找到文件。
src/server.h
浏览文件 @
fd08839a
...
...
@@ -538,40 +538,40 @@ typedef struct readyList {
* Clients are taken in a linked list. */
typedef
struct
client
{
uint64_t
id
;
/* Client incremental unique ID. */
int
fd
;
redisDb
*
db
;
int
dictid
;
robj
*
name
;
/* As set by CLIENT SETNAME */
sds
querybuf
;
size_t
querybuf_peak
;
/* Recent (100ms or more) peak of querybuf size */
int
argc
;
robj
**
argv
;
struct
redisCommand
*
cmd
,
*
lastcmd
;
int
reqtype
;
int
multibulklen
;
/*
number of multi bulk arguments left to read
*/
long
bulklen
;
/*
length of bulk argument in multi bulk request
*/
list
*
reply
;
unsigned
long
long
reply_bytes
;
/* Tot bytes of objects in reply list */
int
fd
;
/* Client socket. */
redisDb
*
db
;
/* Pointer to currently SELECTed DB. */
int
dictid
;
/* ID of the currently SELECTed DB. */
robj
*
name
;
/* As set by CLIENT SETNAME
.
*/
sds
querybuf
;
/* Buffer we use to accumulate client queries. */
size_t
querybuf_peak
;
/* Recent (100ms or more) peak of querybuf size
.
*/
int
argc
;
/* Num of arguments of current command. */
robj
**
argv
;
/* Arguments of current command. */
struct
redisCommand
*
cmd
,
*
lastcmd
;
/* Last command executed. */
int
reqtype
;
/* Request protocol type: PROTO_REQ_* */
int
multibulklen
;
/*
Number of multi bulk arguments left to read.
*/
long
bulklen
;
/*
Length of bulk argument in multi bulk request.
*/
list
*
reply
;
/* List of reply objects to send to the client. */
unsigned
long
long
reply_bytes
;
/* Tot bytes of objects in reply list
.
*/
size_t
sentlen
;
/* Amount of bytes already sent in the current
buffer or object being sent. */
time_t
ctime
;
/* Client creation time */
time_t
lastinteraction
;
/*
t
ime of the last interaction, used for timeout */
time_t
ctime
;
/* Client creation time
.
*/
time_t
lastinteraction
;
/*
T
ime of the last interaction, used for timeout */
time_t
obuf_soft_limit_reached_time
;
int
flags
;
/* C
LIENT_SLAVE | CLIENT_MONITOR | CLIENT_MULTI ..
. */
int
authenticated
;
/*
when requirepass is non-NULL
*/
int
replstate
;
/*
replication state if this is a slave
*/
int
flags
;
/* C
lient flags: CLIENT_* macros
. */
int
authenticated
;
/*
When requirepass is non-NULL.
*/
int
replstate
;
/*
Replication state if this is a slave.
*/
int
repl_put_online_on_ack
;
/* Install slave write handler on ACK. */
int
repldbfd
;
/*
replication DB file descriptor
*/
off_t
repldboff
;
/* replication DB file offset
*/
off_t
repldbsize
;
/* replication DB file size
*/
sds
replpreamble
;
/*
r
eplication DB preamble. */
long
long
reploff
;
/*
replication offset if this is our master
*/
long
long
repl_ack_off
;
/*
replication ack offset, if this is a slave
*/
long
long
repl_ack_time
;
/*
replication ack time, if this is a slave
*/
int
repldbfd
;
/*
Replication DB file descriptor.
*/
off_t
repldboff
;
/* Replication DB file offset.
*/
off_t
repldbsize
;
/* Replication DB file size.
*/
sds
replpreamble
;
/*
R
eplication DB preamble. */
long
long
reploff
;
/*
Replication offset if this is our master.
*/
long
long
repl_ack_off
;
/*
Replication ack offset, if this is a slave.
*/
long
long
repl_ack_time
;
/*
Replication ack time, if this is a slave.
*/
long
long
psync_initial_offset
;
/* FULLRESYNC reply offset other slaves
copying this slave output buffer
should use. */
char
replrunid
[
CONFIG_RUN_ID_SIZE
+
1
];
/*
master run id if this is a master
*/
char
replrunid
[
CONFIG_RUN_ID_SIZE
+
1
];
/*
Master run id if is a master.
*/
int
slave_listening_port
;
/* As configured with: SLAVECONF listening-port */
int
slave_capa
;
/* Slave capabilities: SLAVE_CAPA_* bitwise OR. */
multiState
mstate
;
/* MULTI/EXEC state */
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录