mirror of
https://github.com/ceph/ceph
synced 2025-02-23 19:17:37 +00:00
mon: only send messages to current OSDs
When choosing a random OSD to send a message to, verify not only that the OSD id is up but that the session is for the same instance of that OSD by checking that the address matches. Fixes: #7093 Backport: emperor, dumpling Signed-off-by: Sage Weil <sage@inktank.com>
This commit is contained in:
parent
f68de9f352
commit
98ed9ac5fe
@ -147,7 +147,8 @@ struct MonSessionMap {
|
||||
bool backward = true, forward = true;
|
||||
while (backward || forward) {
|
||||
if (backward) {
|
||||
if (osdmap->is_up(b->first)) {
|
||||
if (osdmap->is_up(b->first) &&
|
||||
osdmap->get_addr(b->first) == b->second->con->get_peer_addr()) {
|
||||
s = b->second;
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user