From 69f60d8bcc5121eb952b57277c94ad5cecb8d44a Mon Sep 17 00:00:00 2001
From: lichao <lichao@aiotlink.com>
Date: 星期四, 03 六月 2021 11:03:08 +0800
Subject: [PATCH] client side update shm on center restart.

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

diff --git a/src/defs.h b/src/defs.h
index b117579..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);
@@ -74,4 +71,6 @@
 // node mq is avail with in timeout; after that may get killed.
 int NodeTimeoutSec();
 
+std::string BHLogDir();
+
 #endif // end of include guard: DEFS_KP8LKGD0

--
Gitblit v1.8.0