Skip to content

Commit 66be482

Browse files
committed
Naming fix
1 parent c50e2d4 commit 66be482

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/replication.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1157,7 +1157,7 @@ class replicationBuffer {
11571157
}
11581158
}
11591159

1160-
void putSlavesOnline() {
1160+
void putReplicasOnline() {
11611161
for (auto replica : replicas) {
11621162
std::unique_lock<fastlock> ul(replica->lock);
11631163
// 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) {
12951295
auto usec = ustime() - timeStart;
12961296
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);
12971297
if (retval == C_OK) {
1298-
replBuf.putSlavesOnline();
1298+
replBuf.putReplicasOnline();
12991299
}
13001300
});
13011301

0 commit comments

Comments
 (0)