Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
a76b380e
Commit
a76b380e
authored
Jul 14, 2015
by
antirez
Browse files
Fix DEBUG structsize output.
parent
f15df8ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/debug.c
View file @
a76b380e
...
@@ -420,13 +420,13 @@ void debugCommand(redisClient *c) {
...
@@ -420,13 +420,13 @@ void debugCommand(redisClient *c) {
addReplySds
(
c
,
errstr
);
addReplySds
(
c
,
errstr
);
}
else
if
(
!
strcasecmp
(
c
->
argv
[
1
]
->
ptr
,
"structsize"
)
&&
c
->
argc
==
2
)
{
}
else
if
(
!
strcasecmp
(
c
->
argv
[
1
]
->
ptr
,
"structsize"
)
&&
c
->
argc
==
2
)
{
sds
sizes
=
sdsempty
();
sds
sizes
=
sdsempty
();
sizes
=
sdscatprintf
(
sizes
,
"bits:%d "
,
(
sizeof
(
void
*
)
==
8
)
?
64
:
32
);
sizes
=
sdscatprintf
(
sizes
,
"bits:%d "
,(
sizeof
(
void
*
)
==
8
)
?
64
:
32
);
sizes
=
sdscatprintf
(
sizes
,
"robj:%d "
,
(
int
)
sizeof
(
robj
));
sizes
=
sdscatprintf
(
sizes
,
"robj:%d "
,(
int
)
sizeof
(
robj
));
sizes
=
sdscatprintf
(
sizes
,
"dictentry:%d "
,
(
int
)
sizeof
(
dictEntry
));
sizes
=
sdscatprintf
(
sizes
,
"dictentry:%d "
,(
int
)
sizeof
(
dictEntry
));
sizes
=
sdscatprintf
(
sizes
,
"sdshdr8:%d"
,
(
int
)
sizeof
(
struct
sdshdr8
));
sizes
=
sdscatprintf
(
sizes
,
"sdshdr8:%d
"
,(
int
)
sizeof
(
struct
sdshdr8
));
sizes
=
sdscatprintf
(
sizes
,
"sdshdr16:%d"
,
(
int
)
sizeof
(
struct
sdshdr16
));
sizes
=
sdscatprintf
(
sizes
,
"sdshdr16:%d
"
,(
int
)
sizeof
(
struct
sdshdr16
));
sizes
=
sdscatprintf
(
sizes
,
"sdshdr32:%d"
,
(
int
)
sizeof
(
struct
sdshdr32
));
sizes
=
sdscatprintf
(
sizes
,
"sdshdr32:%d
"
,(
int
)
sizeof
(
struct
sdshdr32
));
sizes
=
sdscatprintf
(
sizes
,
"sdshdr64:%d"
,
(
int
)
sizeof
(
struct
sdshdr64
));
sizes
=
sdscatprintf
(
sizes
,
"sdshdr64:%d
"
,(
int
)
sizeof
(
struct
sdshdr64
));
addReplyBulkSds
(
c
,
sizes
);
addReplyBulkSds
(
c
,
sizes
);
}
else
if
(
!
strcasecmp
(
c
->
argv
[
1
]
->
ptr
,
"htstats"
)
&&
c
->
argc
==
3
)
{
}
else
if
(
!
strcasecmp
(
c
->
argv
[
1
]
->
ptr
,
"htstats"
)
&&
c
->
argc
==
3
)
{
long
dbid
;
long
dbid
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment