diff options
author | antirez <antirez@gmail.com> | 2015-07-24 08:49:23 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2015-07-24 08:49:23 +0200 |
commit | 935251259f19666bb0d8b7a83db771ca49d5e182 (patch) | |
tree | 96bbbc0b02e4f850c74262c8d20cb08b292808ee /src/debug.c | |
parent | bcb4d091233a98b025aac18b3a7e4966356323eb (diff) | |
parent | ea9bd243ecf02760ac7a5e9a25bd2d067b71ee84 (diff) | |
download | redis-935251259f19666bb0d8b7a83db771ca49d5e182.tar.gz |
Merge branch 'sds' into unstable
Diffstat (limited to 'src/debug.c')
-rw-r--r-- | src/debug.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/debug.c b/src/debug.c index 2acba1495..0d2f24245 100644 --- a/src/debug.c +++ b/src/debug.c @@ -420,10 +420,14 @@ void debugCommand(redisClient *c) { addReplySds(c,errstr); } else if (!strcasecmp(c->argv[1]->ptr,"structsize") && c->argc == 2) { sds sizes = sdsempty(); - sizes = sdscatprintf(sizes,"bits:%d ", (sizeof(void*) == 8)?64:32); - sizes = sdscatprintf(sizes,"robj:%d ", (int)sizeof(robj)); - sizes = sdscatprintf(sizes,"dictentry:%d ", (int)sizeof(dictEntry)); - sizes = sdscatprintf(sizes,"sdshdr:%d", (int)sizeof(struct sdshdr)); + sizes = sdscatprintf(sizes,"bits:%d ",(sizeof(void*) == 8)?64:32); + sizes = sdscatprintf(sizes,"robj:%d ",(int)sizeof(robj)); + sizes = sdscatprintf(sizes,"dictentry:%d ",(int)sizeof(dictEntry)); + sizes = sdscatprintf(sizes,"sdshdr5:%d ",(int)sizeof(struct sdshdr5)); + sizes = sdscatprintf(sizes,"sdshdr8:%d ",(int)sizeof(struct sdshdr8)); + sizes = sdscatprintf(sizes,"sdshdr16:%d ",(int)sizeof(struct sdshdr16)); + sizes = sdscatprintf(sizes,"sdshdr32:%d ",(int)sizeof(struct sdshdr32)); + sizes = sdscatprintf(sizes,"sdshdr64:%d ",(int)sizeof(struct sdshdr64)); addReplyBulkSds(c,sizes); } else if (!strcasecmp(c->argv[1]->ptr,"htstats") && c->argc == 3) { long dbid; |