Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
hanoi2005
redis
提交
ad6de43c
R
redis
项目概览
hanoi2005
/
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,发现更多精彩内容 >>
提交
ad6de43c
编写于
3月 18, 2010
作者:
A
antirez
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
zipmap fix for large values
上级
db5946fc
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
17 addition
and
2 deletion
+17
-2
staticsymbols.h
staticsymbols.h
+13
-0
test-redis.tcl
test-redis.tcl
+2
-1
zipmap.c
zipmap.c
+1
-1
zipmap.h
zipmap.h
+1
-0
未找到文件。
staticsymbols.h
浏览文件 @
ad6de43c
...
...
@@ -3,10 +3,12 @@ static struct redisFunctionSym symsTable[] = {
{
"_redisAssert"
,(
unsigned
long
)
_redisAssert
},
{
"acceptHandler"
,(
unsigned
long
)
acceptHandler
},
{
"addReply"
,(
unsigned
long
)
addReply
},
{
"addReplyBulk"
,(
unsigned
long
)
addReplyBulk
},
{
"addReplyBulkLen"
,(
unsigned
long
)
addReplyBulkLen
},
{
"addReplyDouble"
,(
unsigned
long
)
addReplyDouble
},
{
"addReplyLong"
,(
unsigned
long
)
addReplyLong
},
{
"addReplySds"
,(
unsigned
long
)
addReplySds
},
{
"addReplyUlong"
,(
unsigned
long
)
addReplyUlong
},
{
"aofRemoveTempFile"
,(
unsigned
long
)
aofRemoveTempFile
},
{
"appendCommand"
,(
unsigned
long
)
appendCommand
},
{
"appendServerSaveParams"
,(
unsigned
long
)
appendServerSaveParams
},
...
...
@@ -21,6 +23,7 @@ static struct redisFunctionSym symsTable[] = {
{
"brpopCommand"
,(
unsigned
long
)
brpopCommand
},
{
"bytesToHuman"
,(
unsigned
long
)
bytesToHuman
},
{
"call"
,(
unsigned
long
)
call
},
{
"checkType"
,(
unsigned
long
)
checkType
},
{
"closeTimedoutClients"
,(
unsigned
long
)
closeTimedoutClients
},
{
"compareStringObjects"
,(
unsigned
long
)
compareStringObjects
},
{
"computeObjectSwappability"
,(
unsigned
long
)
computeObjectSwappability
},
...
...
@@ -81,6 +84,7 @@ static struct redisFunctionSym symsTable[] = {
{
"fwriteBulkObject"
,(
unsigned
long
)
fwriteBulkObject
},
{
"fwriteBulkString"
,(
unsigned
long
)
fwriteBulkString
},
{
"genRedisInfoString"
,(
unsigned
long
)
genRedisInfoString
},
{
"genericHgetallCommand"
,(
unsigned
long
)
genericHgetallCommand
},
{
"genericZrangebyscoreCommand"
,(
unsigned
long
)
genericZrangebyscoreCommand
},
{
"getCommand"
,(
unsigned
long
)
getCommand
},
{
"getDecodedObject"
,(
unsigned
long
)
getDecodedObject
},
...
...
@@ -91,9 +95,15 @@ static struct redisFunctionSym symsTable[] = {
{
"glueReplyBuffersIfNeeded"
,(
unsigned
long
)
glueReplyBuffersIfNeeded
},
{
"handleClientsBlockedOnSwappedKey"
,(
unsigned
long
)
handleClientsBlockedOnSwappedKey
},
{
"handleClientsWaitingListPush"
,(
unsigned
long
)
handleClientsWaitingListPush
},
{
"hdelCommand"
,(
unsigned
long
)
hdelCommand
},
{
"hexistsCommand"
,(
unsigned
long
)
hexistsCommand
},
{
"hgetCommand"
,(
unsigned
long
)
hgetCommand
},
{
"hgetallCommand"
,(
unsigned
long
)
hgetallCommand
},
{
"hkeysCommand"
,(
unsigned
long
)
hkeysCommand
},
{
"hlenCommand"
,(
unsigned
long
)
hlenCommand
},
{
"hsetCommand"
,(
unsigned
long
)
hsetCommand
},
{
"htNeedsResize"
,(
unsigned
long
)
htNeedsResize
},
{
"hvalsCommand"
,(
unsigned
long
)
hvalsCommand
},
{
"incrCommand"
,(
unsigned
long
)
incrCommand
},
{
"incrDecrCommand"
,(
unsigned
long
)
incrDecrCommand
},
{
"incrRefCount"
,(
unsigned
long
)
incrRefCount
},
...
...
@@ -112,7 +122,9 @@ static struct redisFunctionSym symsTable[] = {
{
"lookupKey"
,(
unsigned
long
)
lookupKey
},
{
"lookupKeyByPattern"
,(
unsigned
long
)
lookupKeyByPattern
},
{
"lookupKeyRead"
,(
unsigned
long
)
lookupKeyRead
},
{
"lookupKeyReadOrReply"
,(
unsigned
long
)
lookupKeyReadOrReply
},
{
"lookupKeyWrite"
,(
unsigned
long
)
lookupKeyWrite
},
{
"lookupKeyWriteOrReply"
,(
unsigned
long
)
lookupKeyWriteOrReply
},
{
"lpopCommand"
,(
unsigned
long
)
lpopCommand
},
{
"lpushCommand"
,(
unsigned
long
)
lpushCommand
},
{
"lrangeCommand"
,(
unsigned
long
)
lrangeCommand
},
...
...
@@ -274,6 +286,7 @@ static struct redisFunctionSym symsTable[] = {
{
"zslInsert"
,(
unsigned
long
)
zslInsert
},
{
"zslRandomLevel"
,(
unsigned
long
)
zslRandomLevel
},
{
"zunionCommand"
,(
unsigned
long
)
zunionCommand
},
{
"zunionInterBlockClientOnSwappedKeys"
,(
unsigned
long
)
zunionInterBlockClientOnSwappedKeys
},
{
"zunionInterGenericCommand"
,(
unsigned
long
)
zunionInterGenericCommand
},
{
NULL
,
0
}
};
test-redis.tcl
浏览文件 @
ad6de43c
...
...
@@ -152,6 +152,7 @@ proc createComplexDataset {r ops} {
}
{
$r zadd $k $d $v
}
{
puts
"hset
$k
$f
$v
"
$r hset $k $f $v
}
set t
[
$r
type $k
]
...
...
@@ -178,7 +179,7 @@ proc createComplexDataset {r ops} {
}
{
hash
}
{
randpath
{
$r
hset $k $f $v
}
\
{
$r
hdel $k $f
}
{
puts
"
$r
hdel
$k
$f
"
;
$r hdel $k $f
}
}
}
}
...
...
zipmap.c
浏览文件 @
ad6de43c
...
...
@@ -116,7 +116,7 @@ static unsigned int zipmapDecodeLength(unsigned char *p) {
unsigned
int
len
=
*
p
;
if
(
len
<
ZIPMAP_BIGLEN
)
return
len
;
memcpy
(
&
len
,
p
,
sizeof
(
unsigned
int
));
memcpy
(
&
len
,
p
+
1
,
sizeof
(
unsigned
int
));
return
len
;
}
...
...
zipmap.h
浏览文件 @
ad6de43c
...
...
@@ -43,5 +43,6 @@ unsigned char *zipmapNext(unsigned char *zm, unsigned char **key, unsigned int *
int
zipmapGet
(
unsigned
char
*
zm
,
unsigned
char
*
key
,
unsigned
int
klen
,
unsigned
char
**
value
,
unsigned
int
*
vlen
);
int
zipmapExists
(
unsigned
char
*
zm
,
unsigned
char
*
key
,
unsigned
int
klen
);
unsigned
int
zipmapLen
(
unsigned
char
*
zm
);
void
zipmapRepr
(
unsigned
char
*
p
);
#endif
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录