summaryrefslogtreecommitdiff
path: root/src/multi.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/multi.c')
-rw-r--r--src/multi.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/multi.c b/src/multi.c
index c82876456..05805310b 100644
--- a/src/multi.c
+++ b/src/multi.c
@@ -162,6 +162,10 @@ void execCommand(redisClient *c) {
c->mstate.commands[j].argc = c->argc;
c->mstate.commands[j].argv = c->argv;
c->mstate.commands[j].cmd = c->cmd;
+
+ /* From time to time, update the cached time so that if the transaction
+ * is huge, we'll have a chance to have more updated time info. */
+ if (j && j % 10000) updateCachedTime();
}
c->argv = orig_argv;
c->argc = orig_argc;