From 993c556000a414011626770540678948f16eaa9e Mon Sep 17 00:00:00 2001
From: lichao <lichao@aiotlink.com>
Date: 星期三, 02 六月 2021 17:40:50 +0800
Subject: [PATCH] center restart with new shm; set center node ssn.

---
 src/defs.h |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/src/defs.h b/src/defs.h
index 5f6fc16..56de8fa 100644
--- a/src/defs.h
+++ b/src/defs.h
@@ -39,9 +39,6 @@
 	MQInfo mq_bus_;
 	MQInfo mq_sender_;
 	robust::AtomicReqRep init_rr_;
-	std::atomic<MQId> mqid_;
-	CenterInfo() :
-	    mqid_(100000) {}
 };
 
 const int kBHCenterPort = 24287;
@@ -59,7 +56,7 @@
 ShmSocket &DefaultSender(SharedMemory &shm);
 
 MQId NewSession();
-bool CenterInit(SharedMemory &shm);
+bool CenterInit();
 bool GlobalInit(SharedMemory &shm);
 typedef std::string Topic;
 void SetLastError(const int ec, const std::string &msg);

--
Gitblit v1.8.0