summaryrefslogtreecommitdiff
path: root/src/script.c
diff options
context:
space:
mode:
author小令童鞋 <lingzhaohui@zeekling.cn>2022-01-11 13:56:31 +0800
committerGitHub <noreply@github.com>2022-01-11 07:56:31 +0200
commit1e25bdf7808bb400f2dc552ec0d6690d1b340d23 (patch)
tree86c580a0a11cd56ade7a3aed7effae4edd4d1f12 /src/script.c
parentd0949b7c5ccab058b94de651e08589ed5c5219a9 (diff)
downloadredis-1e25bdf7808bb400f2dc552ec0d6690d1b340d23.tar.gz
fix redis crached by using eval with access to volatile keys (#10080)
This is a recent regression from the Redis Functions commits
Diffstat (limited to 'src/script.c')
-rw-r--r--src/script.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script.c b/src/script.c
index 0c46beea6..1d7656504 100644
--- a/src/script.c
+++ b/src/script.c
@@ -413,7 +413,7 @@ void scriptCall(scriptRunCtx *run_ctx, robj* *argv, int argc, sds *err) {
/* Returns the time when the script invocation started */
mstime_t scriptTimeSnapshot() {
- serverAssert(!curr_run_ctx);
+ serverAssert(curr_run_ctx);
return curr_run_ctx->snapshot_time;
}