mirror of
https://github.com/fluencelabs/redis
synced 2025-06-18 03:31: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:
@ -826,7 +826,7 @@ void initServer() {
|
||||
server.slaves = listCreate();
|
||||
server.monitors = listCreate();
|
||||
server.unblocked_clients = listCreate();
|
||||
server.cache_flush_queue = listCreate();
|
||||
server.cache_io_queue = listCreate();
|
||||
server.cache_flush_delay = 0;
|
||||
|
||||
createSharedObjects();
|
||||
@ -857,6 +857,7 @@ void initServer() {
|
||||
if (server.ds_enabled) {
|
||||
server.db[j].io_keys = dictCreate(&keylistDictType,NULL);
|
||||
server.db[j].io_negcache = dictCreate(&setDictType,NULL);
|
||||
server.db[j].io_queued = dictCreate(&setDictType,NULL);
|
||||
}
|
||||
server.db[j].id = j;
|
||||
}
|
||||
|
Reference in New Issue
Block a user