Remove the keys in the hash table. We need to do that when data is * flushed from the server. We may receive new keys from the master with * the same name/db and it is no longer a good idea to expire them. * * Note: technically we should handle the case of a single DB being flushed * but it is not worth it since anyway race conditions using the same set * of key names in a writable slave and
| 460 | * of key names in a writable slave and in its master will lead to |
| 461 | * inconsistencies. This is just a best-effort thing we do. */ |
| 462 | void flushSlaveKeysWithExpireList(void) { |
| 463 | if (slaveKeysWithExpire) { |
| 464 | dictRelease(slaveKeysWithExpire); |
| 465 | slaveKeysWithExpire = NULL; |
| 466 | } |
| 467 | } |
| 468 | |
| 469 | int checkAlreadyExpired(long long when) { |
| 470 | /* EXPIRE with negative TTL, or EXPIREAT with a timestamp into the past |
no test coverage detected