From f7f8fbc85c48b003d1e3094a94a3528001977977 Mon Sep 17 00:00:00 2001 From: lichao <lichao@aiotlink.com> Date: 星期二, 01 六月 2021 15:15:55 +0800 Subject: [PATCH] remove length in ShmSocket ctor, not used. --- box/node_center.cpp | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/box/node_center.cpp b/box/node_center.cpp index 662b2c0..b285c9f 100644 --- a/box/node_center.cpp +++ b/box/node_center.cpp @@ -164,7 +164,7 @@ // create sockets. try { - ShmSocket tmp(shm, true, ssn, 16); + ShmSocket tmp(shm, ssn, eCreate); node->addrs_.emplace(ssn, tmp.AbsAddr()); return true; } catch (...) { @@ -333,7 +333,7 @@ auto &node = pos->second; try { for (int i = 0; i < msg.extra_mq_num(); ++i) { - ShmSocket tmp(node->shm_, true, head.ssn_id() + i + 1, 16); + ShmSocket tmp(node->shm_, head.ssn_id() + i + 1, eCreate); node->addrs_.emplace(tmp.id(), tmp.AbsAddr()); auto addr = reply.add_extra_mqs(); addr->set_mq_id(tmp.id()); -- Gitblit v1.8.0