summaryrefslogtreecommitdiff
path: root/src/cluster.h
diff options
context:
space:
mode:
authorWang Yuan <wangyuan21@baidu.com>2022-04-17 14:41:46 +0800
committerGitHub <noreply@github.com>2022-04-17 09:41:46 +0300
commita9d5cfa99bf2d9a88daad7add5afb9ff9287a0c5 (patch)
tree76dcf766893100e2fce7c789fd82b39bec4fc916 /src/cluster.h
parentfe1c096b1849b633f41f69f432c4236428035950 (diff)
downloadredis-a9d5cfa99bf2d9a88daad7add5afb9ff9287a0c5.tar.gz
Optimize the call of prepareReplicasToWrite (#10588)
From #9166, we call several times of prepareReplicasToWrite when propagating one write command to replication stream (once per argument, same as we do for normal clients), that is not necessary. Now we only call it one time per command at the begin of feeding replication stream. This results in reducing CPU consumption and slightly better performance, specifically when there are many replicas.
Diffstat (limited to 'src/cluster.h')
0 files changed, 0 insertions, 0 deletions