RDB fuzz test cases
Former-commit-id: 6df4d294220ed914c592f3bd195ae921d6a84cde
This commit is contained in:
parent
4db6193052
commit
b01cf73999
13
fuzz/rdb/dict.txt
Normal file
13
fuzz/rdb/dict.txt
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
="repl-stream-db"
|
||||||
|
="repl-id"
|
||||||
|
="repl-offset"
|
||||||
|
="lua"
|
||||||
|
="redis-ver"
|
||||||
|
="ctime"
|
||||||
|
="used-mem"
|
||||||
|
="aof-preamble"
|
||||||
|
="redis-bits"
|
||||||
|
="mvcc-tstamp"
|
||||||
|
="keydb-subexpire-key"
|
||||||
|
="keydb-subexpire-when"
|
||||||
|
|
BIN
fuzz/rdb/testcases/empty.rdb
Normal file
BIN
fuzz/rdb/testcases/empty.rdb
Normal file
Binary file not shown.
BIN
fuzz/rdb/testcases/expire.rdb
Normal file
BIN
fuzz/rdb/testcases/expire.rdb
Normal file
Binary file not shown.
BIN
fuzz/rdb/testcases/expireonload.rdb
Normal file
BIN
fuzz/rdb/testcases/expireonload.rdb
Normal file
Binary file not shown.
BIN
fuzz/rdb/testcases/integer.rdb
Normal file
BIN
fuzz/rdb/testcases/integer.rdb
Normal file
Binary file not shown.
BIN
fuzz/rdb/testcases/integer_shared.rdb
Normal file
BIN
fuzz/rdb/testcases/integer_shared.rdb
Normal file
Binary file not shown.
BIN
fuzz/rdb/testcases/multidb.rdb
Normal file
BIN
fuzz/rdb/testcases/multidb.rdb
Normal file
Binary file not shown.
BIN
fuzz/rdb/testcases/replica.rdb
Normal file
BIN
fuzz/rdb/testcases/replica.rdb
Normal file
Binary file not shown.
BIN
fuzz/rdb/testcases/set.rdb
Normal file
BIN
fuzz/rdb/testcases/set.rdb
Normal file
Binary file not shown.
BIN
fuzz/rdb/testcases/string.rdb
Normal file
BIN
fuzz/rdb/testcases/string.rdb
Normal file
Binary file not shown.
@ -5243,6 +5243,10 @@ int main(int argc, char **argv) {
|
|||||||
aeReleaseLock(); //Finally we can dump the lock
|
aeReleaseLock(); //Finally we can dump the lock
|
||||||
moduleReleaseGIL(true);
|
moduleReleaseGIL(true);
|
||||||
|
|
||||||
|
// If we're just fuzzing then we've already loaded the RDB so just quit successfully
|
||||||
|
if (strstr(argv[0],"keydb-fuzz-rdb") != NULL)
|
||||||
|
return EXIT_SUCCESS;
|
||||||
|
|
||||||
serverAssert(cserver.cthreads > 0 && cserver.cthreads <= MAX_EVENT_LOOPS);
|
serverAssert(cserver.cthreads > 0 && cserver.cthreads <= MAX_EVENT_LOOPS);
|
||||||
pthread_t rgthread[MAX_EVENT_LOOPS];
|
pthread_t rgthread[MAX_EVENT_LOOPS];
|
||||||
for (int iel = 0; iel < cserver.cthreads; ++iel)
|
for (int iel = 0; iel < cserver.cthreads; ++iel)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user