diff --git a/src/config.c b/src/config.c index 1e30b5f60e..7f0901c50a 100644 --- a/src/config.c +++ b/src/config.c @@ -3309,7 +3309,7 @@ standardConfig static_configs[] = { createIntConfig("repl-diskless-sync-max-replicas", NULL, MODIFIABLE_CONFIG, 0, INT_MAX, server.repl_diskless_sync_max_replicas, 0, INTEGER_CONFIG, NULL, NULL), createIntConfig("rdma-port", NULL, MODIFIABLE_CONFIG, 0, 65535, server.rdma_ctx_config.port, 0, INTEGER_CONFIG, NULL, updateRdmaPort), createIntConfig("rdma-rx-size", NULL, IMMUTABLE_CONFIG, 64 * 1024, 16 * 1024 * 1024, server.rdma_ctx_config.rx_size, 1024 * 1024, INTEGER_CONFIG, NULL, NULL), - createIntConfig("rdma-completion-vector", NULL, IMMUTABLE_CONFIG, -1, 1024, server.rdma_ctx_config.complection_vector, -1, INTEGER_CONFIG, NULL, NULL), + createIntConfig("rdma-completion-vector", NULL, IMMUTABLE_CONFIG, -1, 1024, server.rdma_ctx_config.completion_vector, -1, INTEGER_CONFIG, NULL, NULL), /* Unsigned int configs */ createUIntConfig("maxclients", NULL, MODIFIABLE_CONFIG, 1, UINT_MAX, server.maxclients, 10000, INTEGER_CONFIG, NULL, updateMaxclients), diff --git a/src/rdma.c b/src/rdma.c index 275608a117..de7ea396a1 100644 --- a/src/rdma.c +++ b/src/rdma.c @@ -294,7 +294,7 @@ static int rdmaCreateResource(RdmaContext *ctx, struct rdma_cm_id *cm_id) { struct ibv_comp_channel *comp_channel = NULL; struct ibv_cq *cq = NULL; struct ibv_pd *pd = NULL; - int comp_vector = rdma_config->complection_vector; + int comp_vector = rdma_config->completion_vector; if (ibv_query_device(cm_id->verbs, &device_attr)) { serverLog(LL_WARNING, "RDMA: ibv ibv query device failed"); diff --git a/src/server.h b/src/server.h index 43adaee407..a4141c33d4 100644 --- a/src/server.h +++ b/src/server.h @@ -1621,7 +1621,7 @@ typedef struct serverRdmaContextConfig { int bindaddr_count; int port; int rx_size; - int complection_vector; + int completion_vector; } serverRdmaContextConfig; /*-----------------------------------------------------------------------------