mirror of https://mirror.osredm.com/root/redis.git
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:
parent
d0949b7c5c
commit
1e25bdf780
|
@ -413,7 +413,7 @@ void scriptCall(scriptRunCtx *run_ctx, robj* *argv, int argc, sds *err) {
|
||||||
|
|
||||||
/* Returns the time when the script invocation started */
|
/* Returns the time when the script invocation started */
|
||||||
mstime_t scriptTimeSnapshot() {
|
mstime_t scriptTimeSnapshot() {
|
||||||
serverAssert(!curr_run_ctx);
|
serverAssert(curr_run_ctx);
|
||||||
return curr_run_ctx->snapshot_time;
|
return curr_run_ctx->snapshot_time;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue