Skip to content

Commit

Permalink
utility to check rdb files for unprocessable opcodes
Browse files Browse the repository at this point in the history
  • Loading branch information
pietern committed Mar 13, 2010
1 parent 5de9ad7 commit 08af4d5
Show file tree
Hide file tree
Showing 3 changed files with 678 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
redis-cli
redis-server
redis-benchmark
redis-check-dump
doc-tools
mkrelease.sh
release
Expand Down
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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) $<

Expand Down
Loading

0 comments on commit 08af4d5

Please sign in to comment.