You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
95 lines
5.0 KiB
95 lines
5.0 KiB
Author: Henrik Triem <henrik.triem@icinga.com> |
|
Date: Mon Jun 27 18:00:00 2022 +0100 |
|
|
|
Re-arrange patches |
|
|
|
diff --git a/src/config.c b/src/config.c |
|
--- a/src/config.c |
|
+++ b/src/config.c |
|
@@ -3016,7 +3016,7 @@ standardConfig static_configs[] = { |
|
|
|
/* Integer configs */ |
|
createIntConfig("databases", NULL, IMMUTABLE_CONFIG, 1, INT_MAX, server.dbnum, 16, INTEGER_CONFIG, NULL, NULL), |
|
- createIntConfig("port", NULL, MODIFIABLE_CONFIG, 0, 65535, server.port, 6379, INTEGER_CONFIG, NULL, updatePort), /* TCP port. */ |
|
+ createIntConfig("port", NULL, MODIFIABLE_CONFIG, 0, 65535, server.port, 6380, INTEGER_CONFIG, NULL, updatePort), /* TCP port. */ |
|
createIntConfig("io-threads", NULL, DEBUG_CONFIG | IMMUTABLE_CONFIG, 1, 128, server.io_threads_num, 1, INTEGER_CONFIG, NULL, NULL), /* Single threaded by default */ |
|
createIntConfig("auto-aof-rewrite-percentage", NULL, MODIFIABLE_CONFIG, 0, INT_MAX, server.aof_rewrite_perc, 100, INTEGER_CONFIG, NULL, NULL), |
|
createIntConfig("cluster-replica-validity-factor", "cluster-slave-validity-factor", MODIFIABLE_CONFIG, 0, INT_MAX, server.cluster_slave_validity_factor, 10, INTEGER_CONFIG, NULL, NULL), /* Slave max data age factor. */ |
|
|
|
diff --git a/src/redis-benchmark.c b/src/redis-benchmark.c |
|
--- a/src/redis-benchmark.c |
|
+++ b/src/redis-benchmark.c |
|
@@ -1741,7 +1741,7 @@ int main(int argc, char **argv) { |
|
config.idlemode = 0; |
|
config.clients = listCreate(); |
|
config.conn_info.hostip = sdsnew("127.0.0.1"); |
|
- config.conn_info.hostport = 6379; |
|
+ config.conn_info.hostport = 6380; |
|
config.hostsocket = NULL; |
|
config.tests = NULL; |
|
config.conn_info.input_dbnum = 0; |
|
|
|
diff --git a/src/redis-cli.c b/src/redis-cli.c |
|
--- a/src/redis-cli.c |
|
+++ b/src/redis-cli.c |
|
@@ -8858,7 +8858,7 @@ int main(int argc, char **argv) { |
|
|
|
memset(&config.sslconfig, 0, sizeof(config.sslconfig)); |
|
config.conn_info.hostip = sdsnew("127.0.0.1"); |
|
- config.conn_info.hostport = 6379; |
|
+ config.conn_info.hostport = 6380; |
|
config.hostsocket = NULL; |
|
config.repeat = 1; |
|
config.interval = 0; |
|
|
|
diff --git a/src/sentinel.c b/src/sentinel.c |
|
--- a/src/sentinel.c |
|
+++ b/src/sentinel.c |
|
@@ -49,7 +49,7 @@ extern SSL_CTX *redis_tls_ctx; |
|
extern SSL_CTX *redis_tls_client_ctx; |
|
#endif |
|
|
|
-#define REDIS_SENTINEL_PORT 26379 |
|
+#define REDIS_SENTINEL_PORT 26380 |
|
|
|
/* ======================== Sentinel global state =========================== */ |
|
|
|
|
|
diff --git a/src/server.c b/src/server.c |
|
--- a/src/server.c |
|
+++ b/src/server.c |
|
@@ -1915,7 +1915,7 @@ void initServerConfig(void) { |
|
|
|
/* Replication related */ |
|
server.masterhost = NULL; |
|
- server.masterport = 6379; |
|
+ server.masterport = 6380; |
|
server.master = NULL; |
|
server.cached_master = NULL; |
|
server.master_initial_offset = -1; |
|
|
|
diff --git a/src/Makefile b/src/Makefile |
|
--- a/src/Makefile |
|
+++ b/src/Makefile |
|
@@ -319,15 +319,15 @@ QUIET_LINK = @printf ' %b %b\n' $(LIN |
|
QUIET_INSTALL = @printf ' %b %b\n' $(LINKCOLOR)INSTALL$(ENDCOLOR) $(BINCOLOR)$@$(ENDCOLOR) 1>&2; |
|
endif |
|
|
|
-REDIS_SERVER_NAME=redis-server$(PROG_SUFFIX) |
|
-REDIS_SENTINEL_NAME=redis-sentinel$(PROG_SUFFIX) |
|
+REDIS_SERVER_NAME=icingadb-redis-server$(PROG_SUFFIX) |
|
+REDIS_SENTINEL_NAME=icingadb-redis-sentinel$(PROG_SUFFIX) |
|
REDIS_SERVER_OBJ=adlist.o quicklist.o ae.o anet.o dict.o server.o sds.o zmalloc.o lzf_c.o lzf_d.o pqsort.o zipmap.o sha1.o ziplist.o release.o networking.o util.o object.o db.o replication.o rdb.o t_string.o t_list.o t_set.o t_zset.o t_hash.o config.o aof.o pubsub.o multi.o debug.o sort.o intset.o syncio.o cluster.o crc16.o endianconv.o slowlog.o eval.o bio.o rio.o rand.o memtest.o syscheck.o crcspeed.o crc64.o bitops.o sentinel.o notify.o setproctitle.o blocked.o hyperloglog.o latency.o sparkline.o redis-check-rdb.o redis-check-aof.o geo.o lazyfree.o module.o evict.o expire.o geohash.o geohash_helper.o childinfo.o defrag.o siphash.o rax.o t_stream.o listpack.o localtime.o lolwut.o lolwut5.o lolwut6.o acl.o tracking.o connection.o tls.o sha256.o timeout.o setcpuaffinity.o monotonic.o mt19937-64.o resp_parser.o call_reply.o script_lua.o script.o functions.o function_lua.o commands.o |
|
-REDIS_CLI_NAME=redis-cli$(PROG_SUFFIX) |
|
+REDIS_CLI_NAME=icingadb-redis-cli$(PROG_SUFFIX) |
|
REDIS_CLI_OBJ=anet.o adlist.o dict.o redis-cli.o zmalloc.o release.o ae.o redisassert.o crcspeed.o crc64.o siphash.o crc16.o monotonic.o cli_common.o mt19937-64.o |
|
-REDIS_BENCHMARK_NAME=redis-benchmark$(PROG_SUFFIX) |
|
+REDIS_BENCHMARK_NAME=icingadb-redis-benchmark$(PROG_SUFFIX) |
|
REDIS_BENCHMARK_OBJ=ae.o anet.o redis-benchmark.o adlist.o dict.o zmalloc.o redisassert.o release.o crcspeed.o crc64.o siphash.o crc16.o monotonic.o cli_common.o mt19937-64.o |
|
-REDIS_CHECK_RDB_NAME=redis-check-rdb$(PROG_SUFFIX) |
|
-REDIS_CHECK_AOF_NAME=redis-check-aof$(PROG_SUFFIX) |
|
+REDIS_CHECK_RDB_NAME=icingadb-redis-check-rdb$(PROG_SUFFIX) |
|
+REDIS_CHECK_AOF_NAME=icingadb-redis-check-aof$(PROG_SUFFIX) |
|
ALL_SOURCES=$(sort $(patsubst %.o,%.c,$(REDIS_SERVER_OBJ) $(REDIS_CLI_OBJ) $(REDIS_BENCHMARK_OBJ))) |
|
|
|
all: $(REDIS_SERVER_NAME) $(REDIS_SENTINEL_NAME) $(REDIS_CLI_NAME) $(REDIS_BENCHMARK_NAME) $(REDIS_CHECK_RDB_NAME) $(REDIS_CHECK_AOF_NAME)
|
|
|