mirror of
https://github.com/ceph/ceph
synced 2025-02-23 02:57:21 +00:00
librados: blacklist_add should wait for latest OSD map
This ensures that future operations against the OSDs force a OSD map update to notice the blacklisted client. Signed-off-by: Jason Dillaman <dillaman@redhat.com>
This commit is contained in:
parent
c720f6e370
commit
9242a2e4e1
@ -789,6 +789,12 @@ int librados::RadosClient::blacklist_add(const string& client_address,
|
||||
cmds.push_back(cmd.str());
|
||||
bufferlist inbl;
|
||||
int r = mon_command(cmds, inbl, NULL, NULL);
|
||||
if (r < 0) {
|
||||
return r;
|
||||
}
|
||||
|
||||
// ensure we have the latest osd map epoch before proceeding
|
||||
r = wait_for_latest_osdmap();
|
||||
return r;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user