From 056a0ca199edbc9f4644684468b8833884e74cd7 Mon Sep 17 00:00:00 2001 From: antirez Date: Tue, 14 Jul 2015 17:33:30 +0200 Subject: [PATCH] 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. --- src/Makefile | 2 +- src/redis-benchmark.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Makefile b/src/Makefile index 106fef34..449b4ec2 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 f735aeb6..e19fdce1 100644 --- a/src/redis-benchmark.c +++ b/src/redis-benchmark.c @@ -40,9 +40,9 @@ #include #include +#include /* Use hiredis sds. */ #include "ae.h" #include "hiredis.h" -#include "sds.h" #include "adlist.h" #include "zmalloc.h"