Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
a60016e0
Unverified
Commit
a60016e0
authored
Apr 16, 2021
by
guybe7
Committed by
GitHub
Apr 16, 2021
Browse files
ReplicationCron: Prevent invalid access to freed pointer (#8799)
Fixes #8797
parent
374401d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/replication.c
View file @
a60016e0
...
@@ -3402,6 +3402,7 @@ void replicationCron(void) {
...
@@ -3402,6 +3402,7 @@ void replicationCron(void) {
serverLog
(
LL_WARNING
,
"Disconnecting timedout replica (streaming sync): %s"
,
serverLog
(
LL_WARNING
,
"Disconnecting timedout replica (streaming sync): %s"
,
replicationGetSlaveName
(
slave
));
replicationGetSlaveName
(
slave
));
freeClient
(
slave
);
freeClient
(
slave
);
continue
;
}
}
}
}
/* We consider disconnecting only diskless replicas because disk-based replicas aren't fed
/* We consider disconnecting only diskless replicas because disk-based replicas aren't fed
...
@@ -3414,6 +3415,7 @@ void replicationCron(void) {
...
@@ -3414,6 +3415,7 @@ void replicationCron(void) {
serverLog
(
LL_WARNING
,
"Disconnecting timedout replica (full sync): %s"
,
serverLog
(
LL_WARNING
,
"Disconnecting timedout replica (full sync): %s"
,
replicationGetSlaveName
(
slave
));
replicationGetSlaveName
(
slave
));
freeClient
(
slave
);
freeClient
(
slave
);
continue
;
}
}
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment