diff options
author | Binbin <binloveplay1314@qq.com> | 2022-01-12 04:43:18 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-11 22:43:18 +0200 |
commit | e22146b07a8b5adc37e0153def1783406eb6d27c (patch) | |
tree | 2e5fbac3acb663ed4931575d58aeecc4d3045de3 /src/eval.c | |
parent | 6790d848c5cf76ad5833d155fc4debc50b9ef2c4 (diff) | |
download | redis-e22146b07a8b5adc37e0153def1783406eb6d27c.tar.gz |
Add script tests to cover keys with expiration time set (#10096)
This commit adds some tests that the test cases will
access the keys with expiration time set in the script call.
There was no test case for this part before. See #10080
Also there is a test will cover #1525. we block the time so
that the key can not expire in the middle of the script execution.
Other changes:
1. Delete `evalTimeSnapshot` and just use `scriptTimeSnapshot` in it's place.
2. Some cleanups to scripting.tcl.
3. better names for tests that run in a loop to make them distinctable
Diffstat (limited to 'src/eval.c')
-rw-r--r-- | src/eval.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/eval.c b/src/eval.c index 7599ca4ac..942f7e07b 100644 --- a/src/eval.c +++ b/src/eval.c @@ -567,12 +567,6 @@ unsigned long evalScriptsMemory() { dictSlots(lctx.lua_scripts) * sizeof(dictEntry*); } -/* Returns the time when the script invocation started */ -mstime_t evalTimeSnapshot() { - return scriptTimeSnapshot(); -} - - /* --------------------------------------------------------------------------- * LDB: Redis Lua debugging facilities * ------------------------------------------------------------------------- */ |