mirror of
https://github.com/fluencelabs/redis
synced 2025-06-14 17:51:21 +00:00
implemented a different approach to IO scheduling, so object->storage is no longer used, instead there is a queue and hash table of IO tasks to process, and it is always possible to know what are the scheduled and acrtive IO operations against every single key.
This commit is contained in:
12
src/debug.c
12
src/debug.c
@ -201,7 +201,6 @@ void debugCommand(redisClient *c) {
|
||||
dictEntry *de = dictFind(c->db->dict,c->argv[2]->ptr);
|
||||
robj *val;
|
||||
char *strenc;
|
||||
char *storage;
|
||||
|
||||
if (!de) {
|
||||
addReply(c,shared.nokeyerr);
|
||||
@ -209,19 +208,14 @@ void debugCommand(redisClient *c) {
|
||||
}
|
||||
val = dictGetEntryVal(de);
|
||||
strenc = strEncoding(val->encoding);
|
||||
switch(val->storage) {
|
||||
case REDIS_DS_MEMORY: storage = "memory"; break;
|
||||
case REDIS_DS_DIRTY: storage = "dirty"; break;
|
||||
case REDIS_DS_SAVING: storage = "saving"; break;
|
||||
default: storage = "unknown"; break;
|
||||
}
|
||||
|
||||
addReplyStatusFormat(c,
|
||||
"Value at:%p refcount:%d "
|
||||
"encoding:%s serializedlength:%lld "
|
||||
"lru:%d lru_seconds_idle:%lu storage:%s",
|
||||
"lru:%d lru_seconds_idle:%lu",
|
||||
(void*)val, val->refcount,
|
||||
strenc, (long long) rdbSavedObjectLen(val),
|
||||
val->lru, estimateObjectIdleTime(val), storage);
|
||||
val->lru, estimateObjectIdleTime(val));
|
||||
} else if (!strcasecmp(c->argv[1]->ptr,"populate") && c->argc == 3) {
|
||||
long keys, j;
|
||||
robj *key, *val;
|
||||
|
Reference in New Issue
Block a user