Initialize msgr lazily in client to speedup vitastor-cli with RDMA enabled

This commit is contained in:
Vitaliy Filippov
2023-02-19 18:59:07 +03:00
parent 1a1ba0d1e7
commit 936122bbcf
3 changed files with 27 additions and 12 deletions
+1
View File
@@ -92,6 +92,7 @@ struct rm_inode_t
void send_ops(rm_pg_t *cur_list)
{
parent->cli->init_msgr();
if (parent->cli->msgr.osd_peer_fds.find(cur_list->rm_osd_num) ==
parent->cli->msgr.osd_peer_fds.end())
{