Allow empty global configuration, report OSD statistics faster

This commit is contained in:
Vitaliy Filippov
2021-02-01 19:31:10 +03:00
parent 21e06ea40d
commit 915d04c446
3 changed files with 6 additions and 2 deletions
+4 -1
View File
@@ -253,7 +253,10 @@ class Mon
const res = await this.etcd_call('/kv/txn', { success: [
{ requestRange: { key: b64(this.etcd_prefix+'/config/global') } }
] }, this.etcd_start_timeout, -1);
this.parse_kv(res.responses[0].response_range.kvs[0]);
if (res.responses[0].response_range.kvs)
{
this.parse_kv(res.responses[0].response_range.kvs[0]);
}
this.check_config();
}