summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorguybe7 <guy.benoish@redislabs.com>2022-12-15 13:56:18 +0530
committerGitHub <noreply@github.com>2022-12-15 10:26:18 +0200
commitdf327b8bd56023931cd41e233f8703de7bbaa82c (patch)
tree0478e1b98aa2d3d62546a99f276201c93bf2b61d
parent5f69ce0d8e43607da0239cdd64e015100ec00046 (diff)
downloadredis-df327b8bd56023931cd41e233f8703de7bbaa82c.tar.gz
Call postExecutionUnitOperations in active-expire of writable replicas (#11615)
We need to honor the post-execution-unit API and call it after each KSN Note that this is an edge case that only happens in case volatile keys were created directly on a writable replica, and that anyway nothing is propagated to sub-replicas Co-authored-by: Oran Agra <oran@redislabs.com>
-rw-r--r--src/expire.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/expire.c b/src/expire.c
index 9fbb4855d..17df22205 100644
--- a/src/expire.c
+++ b/src/expire.c
@@ -396,6 +396,8 @@ void expireSlaveKeys(void) {
activeExpireCycleTryExpire(server.db+dbid,expire,start))
{
expired = 1;
+ /* DELs aren't propagated, but modules may want their hooks. */
+ postExecutionUnitOperations();
}
/* If the key was not expired in this DB, we need to set the