diff --git a/common/schema.h b/common/schema.h index e99f2ad8..461ea4d8 100644 --- a/common/schema.h +++ b/common/schema.h @@ -475,11 +475,12 @@ namespace swss { #define CFG_SUPPRESS_ASIC_SDK_HEALTH_EVENT_NAME "SUPPRESS_ASIC_SDK_HEALTH_EVENT" +#define CFG_MEMORY_STATISTICS_TABLE_NAME "MEMORY_STATISTICS" + #define CFG_PAC_PORT_CONFIG_TABLE "PAC_PORT_CONFIG_TABLE" #define CFG_PAC_GLOBAL_CONFIG_TABLE "PAC_GLOBAL_CONFIG_TABLE" #define CFG_PAC_HOSTAPD_GLOBAL_CONFIG_TABLE "HOSTAPD_GLOBAL_CONFIG_TABLE" - /***** STATE DATABASE *****/ #define STATE_SWITCH_CAPABILITY_TABLE_NAME "SWITCH_CAPABILITY" diff --git a/common/zmqclient.h b/common/zmqclient.h index ebc0bd01..0e835f31 100644 --- a/common/zmqclient.h +++ b/common/zmqclient.h @@ -32,7 +32,7 @@ class ZmqClient private: void initialize(const std::string& endpoint, const std::string& vrf); -// void initialize(const std::string& endpoint); + void initialize(const std::string& endpoint); std::string m_endpoint; diff --git a/common/zmqserver.cpp b/common/zmqserver.cpp index 3235dc5c..280c2918 100644 --- a/common/zmqserver.cpp +++ b/common/zmqserver.cpp @@ -1,3 +1,4 @@ +#include #include #include #include @@ -229,6 +230,8 @@ void ZmqServer::sendMsg(const std::string& dbName, const std::string& tableName, auto message = "zmq send failed, endpoint: " + m_endpoint + ", error: " + to_string(rc); SWSS_LOG_ERROR("%s", message.c_str()); // throw system_error(make_error_code(errc::io_error), message); +// SWSS_LOG_THROW("Else case message is: %s", message.c_str()); + return; } usleep(retry_delay * 1000); } @@ -236,7 +239,9 @@ void ZmqServer::sendMsg(const std::string& dbName, const std::string& tableName, // failed after retry auto message = "zmq send failed, endpoint: " + m_endpoint + ", zmqerrno: " + to_string(zmq_err) + ":" + zmq_strerror(zmq_err) + ", msg length:" + to_string(serializedlen); SWSS_LOG_ERROR("%s", message.c_str()); - throw system_error(make_error_code(errc::io_error), message); +// throw system_error(make_error_code(errc::io_error), message); +// SWSS_LOG_THROW("Last Error message is %s", message.c_str()); + return; } }