From 66be482ef52bc95ef3acc67571fb345c5032cc96 Mon Sep 17 00:00:00 2001 From: John Sully Date: Fri, 5 Apr 2024 19:15:24 +0000 Subject: [PATCH] Naming fix --- src/replication.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/replication.cpp b/src/replication.cpp index afdb62256..22e5bc28e 100644 --- a/src/replication.cpp +++ b/src/replication.cpp @@ -1157,7 +1157,7 @@ class replicationBuffer { } } - void putSlavesOnline() { + void putReplicasOnline() { for (auto replica : replicas) { std::unique_lock ul(replica->lock); // If we put the replica online before the output is drained then it will get immediately closed @@ -1295,7 +1295,7 @@ int rdbSaveSnapshotForReplication(rdbSaveInfo *rsi) { auto usec = ustime() - timeStart; serverLog(LL_NOTICE, "Transferred %zuMB total (%zuMB data) in %.2f seconds. (%.2fGbit/s)", spreplBuf->cbWritten()/1024/1024, cbData/1024/1024, usec/1000000.0, (spreplBuf->cbWritten()*8.0)/(usec/1000000.0)/1000000000.0); if (retval == C_OK) { - replBuf.putSlavesOnline(); + replBuf.putReplicasOnline(); } });