fix redis crached by using eval with access to volatile keys (#10080)

This is a recent regression from the Redis Functions commits
This commit is contained in:
小令童鞋 2022-01-11 13:56:31 +08:00 committed by GitHub
parent d0949b7c5c
commit 1e25bdf780
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}