Merge PR #31995 into master

* refs/pull/31995/head:
	msg/async: No need lock for func _filter_addrs

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
This commit is contained in:
Sage Weil 2019-12-08 10:15:17 -06:00
commit 1542776e44

View File

@ -691,10 +691,8 @@ ConnectionRef AsyncMessenger::connect_to(int type,
}
}
std::lock_guard l{lock};
auto av = _filter_addrs(addrs);
std::lock_guard l{lock};
if (anon) {
return create_connect(av, type, anon);
}