Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xindoo
redis
提交
c811bb38
R
redis
项目概览
xindoo
/
redis
通知
2
Star
2
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,发现更多精彩内容 >>
提交
c811bb38
编写于
4月 16, 2010
作者:
P
Pieter Noordhuis
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drop inline directive
上级
feb8d7e6
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
3 addition
and
3 deletion
+3
-3
redis.c
redis.c
+3
-3
未找到文件。
redis.c
浏览文件 @
c811bb38
...
@@ -6155,7 +6155,7 @@ static int hashDelete(robj *o, robj *key) {
...
@@ -6155,7 +6155,7 @@ static int hashDelete(robj *o, robj *key) {
}
}
/* Return the number of elements in a hash. */
/* Return the number of elements in a hash. */
static
inline
unsigned
long
hashLength
(
robj
*
o
)
{
static
unsigned
long
hashLength
(
robj
*
o
)
{
return
(
o
->
encoding
==
REDIS_ENCODING_ZIPMAP
)
?
return
(
o
->
encoding
==
REDIS_ENCODING_ZIPMAP
)
?
zipmapLen
((
unsigned
char
*
)
o
->
ptr
)
:
dictSize
((
dict
*
)
o
->
ptr
);
zipmapLen
((
unsigned
char
*
)
o
->
ptr
)
:
dictSize
((
dict
*
)
o
->
ptr
);
}
}
...
@@ -6193,7 +6193,7 @@ static void hashReleaseIterator(hashIterator *hi) {
...
@@ -6193,7 +6193,7 @@ static void hashReleaseIterator(hashIterator *hi) {
/* Move to the next entry in the hash. Return REDIS_OK when the next entry
/* Move to the next entry in the hash. Return REDIS_OK when the next entry
* could be found and REDIS_ERR when the iterator reaches the end. */
* could be found and REDIS_ERR when the iterator reaches the end. */
static
in
line
in
t
hashNext
(
hashIterator
*
hi
)
{
static
int
hashNext
(
hashIterator
*
hi
)
{
if
(
hi
->
encoding
==
REDIS_ENCODING_ZIPMAP
)
{
if
(
hi
->
encoding
==
REDIS_ENCODING_ZIPMAP
)
{
if
((
hi
->
zi
=
zipmapNext
(
hi
->
zi
,
&
hi
->
zk
,
&
hi
->
zklen
,
if
((
hi
->
zi
=
zipmapNext
(
hi
->
zi
,
&
hi
->
zk
,
&
hi
->
zklen
,
&
hi
->
zv
,
&
hi
->
zvlen
))
==
NULL
)
return
REDIS_ERR
;
&
hi
->
zv
,
&
hi
->
zvlen
))
==
NULL
)
return
REDIS_ERR
;
...
@@ -6206,7 +6206,7 @@ static inline int hashNext(hashIterator *hi) {
...
@@ -6206,7 +6206,7 @@ static inline int hashNext(hashIterator *hi) {
/* Get key or value object at current iteration position.
/* Get key or value object at current iteration position.
* See comments at hashGet for a discussion on the refcount for
* See comments at hashGet for a discussion on the refcount for
* keys and values retrieved from zipmaps. */
* keys and values retrieved from zipmaps. */
static
inline
robj
*
hashCurrent
(
hashIterator
*
hi
,
int
what
)
{
static
robj
*
hashCurrent
(
hashIterator
*
hi
,
int
what
)
{
robj
*
o
;
robj
*
o
;
if
(
hi
->
encoding
==
REDIS_ENCODING_ZIPMAP
)
{
if
(
hi
->
encoding
==
REDIS_ENCODING_ZIPMAP
)
{
if
(
what
&
REDIS_HASH_KEY
)
{
if
(
what
&
REDIS_HASH_KEY
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录