summaryrefslogtreecommitdiff
path: root/src/server.c
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2016-06-30 23:44:44 +0200
committerantirez <antirez@gmail.com>2016-06-30 23:44:44 +0200
commite97fadb045c8bd10efd00d18374417009feb18c5 (patch)
treefe00e0d24a61f8defcad387bbccdf98c51c7deaa /src/server.c
parent24bd9b19f60712f635ce512a7fa29d6de2d98e39 (diff)
downloadredis-e97fadb045c8bd10efd00d18374417009feb18c5.tar.gz
In Redis RDB check: initial POC.
So far we used an external program (later executed within Redis) and parser in order to check RDB files for correctness. This forces, at each RDB format update, to have two copies of the same format implementation that are hard to keep in sync. Morover the former RDB checker only checked the very high-level format of the file, without actually trying to load things in memory. Certain corruptions can only be handled by really loading key-value pairs. This first commit attempts to unify the Redis RDB loadig code with the task of checking the RDB file for correctness. More work is needed but it looks like a sounding direction so far.
Diffstat (limited to 'src/server.c')
-rw-r--r--src/server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server.c b/src/server.c
index 06244081f..69eb89390 100644
--- a/src/server.c
+++ b/src/server.c
@@ -4033,7 +4033,7 @@ int main(int argc, char **argv) {
* the program main. However the program is part of the Redis executable
* so that we can easily execute an RDB check on loading errors. */
if (strstr(argv[0],"redis-check-rdb") != NULL)
- exit(redis_check_rdb_main(argv,argc));
+ redis_check_rdb_main(argv,argc);
if (argc >= 2) {
j = 1; /* First option to parse in argv[] */