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:
Jason Dillaman 2017-01-06 11:17:10 -05:00
parent c720f6e370
commit 9242a2e4e1

View File

@ -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;
}