Client side caching: split invalidation into key / slot.

This commit is contained in:
antirez
2019-07-22 18:59:53 +02:00
parent 09c06698e9
commit c41f94d2a3
3 changed files with 44 additions and 19 deletions

View File

@ -3401,6 +3401,10 @@ int processCommand(client *c) {
}
}
/* Make sure to use a reasonable amount of memory for client side
* caching metadata. */
if (server.tracking_clients) trackingLimitUsedSlots();
/* Don't accept write commands if there are problems persisting on disk
* and if this is a master instance. */
int deny_write_type = writeCommandsDeniedByDiskError();