Permalink
Browse files

utility to check rdb files for unprocessable opcodes

  • Loading branch information...
1 parent 5de9ad7 commit 08af4d5c960bef772992350f64212e3942ce2d57 @pietern pietern committed Mar 13, 2010
Showing with 678 additions and 1 deletion.
  1. +1 −0 .gitignore
  2. +6 −1 Makefile
  3. +671 −0 redis-check-dump.c
View
@@ -5,6 +5,7 @@
redis-cli
redis-server
redis-benchmark
+redis-check-dump
doc-tools
mkrelease.sh
release
View
@@ -17,12 +17,14 @@ DEBUG?= -g -rdynamic -ggdb
OBJ = adlist.o ae.o anet.o dict.o redis.o sds.o zmalloc.o lzf_c.o lzf_d.o pqsort.o zipmap.o
BENCHOBJ = ae.o anet.o redis-benchmark.o sds.o adlist.o zmalloc.o
CLIOBJ = anet.o sds.o adlist.o redis-cli.o zmalloc.o
+CHECKDUMPOBJ = redis-check-dump.o lzf_c.o lzf_d.o
PRGNAME = redis-server
BENCHPRGNAME = redis-benchmark
CLIPRGNAME = redis-cli
+CHECKDUMPPRGNAME = redis-check-dump
-all: redis-server redis-benchmark redis-cli
+all: redis-server redis-benchmark redis-cli redis-check-dump
# Deps (use make dep to generate this)
adlist.o: adlist.c adlist.h zmalloc.h
@@ -58,6 +60,9 @@ redis-benchmark: $(BENCHOBJ)
redis-cli: $(CLIOBJ)
$(CC) -o $(CLIPRGNAME) $(CCOPT) $(DEBUG) $(CLIOBJ)
+redis-check-dump: $(CHECKDUMPOBJ)
+ $(CC) -o $(CHECKDUMPPRGNAME) $(CCOPT) $(DEBUG) $(CHECKDUMPOBJ)
+
.c.o:
$(CC) -c $(CFLAGS) $(DEBUG) $(COMPILE_TIME) $<
Oops, something went wrong.

0 comments on commit 08af4d5

Please sign in to comment.