summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2015-07-14 17:33:30 +0200
committerantirez <antirez@gmail.com>2015-07-14 17:33:30 +0200
commit056a0ca199edbc9f4644684468b8833884e74cd7 (patch)
tree1759809ceb7e2cd94fbade192eb5d707554dbb0d
parenta76b380e06d6758dcd84277003ca7af520c2b422 (diff)
downloadredis-056a0ca199edbc9f4644684468b8833884e74cd7.tar.gz
Fix redis-benchmark sds binding.
Same as redis-cli, now redis-benchmark requires to use hiredis sds copy since it is different compared to the memory optimized fork of Redis sds.
-rw-r--r--src/Makefile2
-rw-r--r--src/redis-benchmark.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/Makefile b/src/Makefile
index 106fef340..449b4ec26 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -122,7 +122,7 @@ REDIS_GEOHASH_OBJ=../deps/geohash-int/geohash.o ../deps/geohash-int/geohash_help
REDIS_CLI_NAME=redis-cli
REDIS_CLI_OBJ=anet.o adlist.o redis-cli.o zmalloc.o release.o anet.o ae.o crc64.o
REDIS_BENCHMARK_NAME=redis-benchmark
-REDIS_BENCHMARK_OBJ=ae.o anet.o redis-benchmark.o sds.o adlist.o zmalloc.o redis-benchmark.o
+REDIS_BENCHMARK_OBJ=ae.o anet.o redis-benchmark.o adlist.o zmalloc.o redis-benchmark.o
REDIS_CHECK_RDB_NAME=redis-check-rdb
REDIS_CHECK_AOF_NAME=redis-check-aof
REDIS_CHECK_AOF_OBJ=redis-check-aof.o
diff --git a/src/redis-benchmark.c b/src/redis-benchmark.c
index f735aeb63..e19fdce14 100644
--- a/src/redis-benchmark.c
+++ b/src/redis-benchmark.c
@@ -40,9 +40,9 @@
#include <signal.h>
#include <assert.h>
+#include <sds.h> /* Use hiredis sds. */
#include "ae.h"
#include "hiredis.h"
-#include "sds.h"
#include "adlist.h"
#include "zmalloc.h"