mirror of
https://github.com/ceph/ceph
synced 2025-01-10 21:20:46 +00:00
Merge branch 'next'
This commit is contained in:
commit
9ef6041fe7
@ -79,13 +79,13 @@ public:
|
||||
int signal_exit(int r) {
|
||||
if (forked) {
|
||||
// tell parent
|
||||
(void)::write(fd[1], &r, sizeof(r));
|
||||
(void)safe_write(fd[1], &r, sizeof(r));
|
||||
}
|
||||
return r;
|
||||
}
|
||||
void exit(int r) {
|
||||
signal_exit(r);
|
||||
exit(r);
|
||||
::exit(r);
|
||||
}
|
||||
|
||||
void daemonize() {
|
||||
|
@ -609,10 +609,16 @@ bool OSDMap::is_blacklisted(const entity_addr_t& a) const
|
||||
return true;
|
||||
|
||||
// is entire ip blacklisted?
|
||||
entity_addr_t b = a;
|
||||
b.set_port(0);
|
||||
b.set_nonce(0);
|
||||
return blacklist.count(b);
|
||||
if (a.is_ip()) {
|
||||
entity_addr_t b = a;
|
||||
b.set_port(0);
|
||||
b.set_nonce(0);
|
||||
if (blacklist.count(b)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
void OSDMap::get_blacklist(list<pair<entity_addr_t,utime_t> > *bl) const
|
||||
|
Loading…
Reference in New Issue
Block a user