Skip to content
This repository has been archived by the owner on Feb 20, 2021. It is now read-only.

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
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
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

0 comments on commit 08af4d5

Please sign in to comment.