From 2f594c75036dfd41b6b40dd5b92f4fda7ebb7a68 Mon Sep 17 00:00:00 2001 From: Qi Luo Date: Mon, 1 May 2017 15:59:56 -0700 Subject: [PATCH] [aclorch]: Temporarily disable ACL thread of collecting counters (#202) This commit is to mitigate the issue #201. --- orchagent/aclorch.cpp | 2 -- orchagent/aclorch.h | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/orchagent/aclorch.cpp b/orchagent/aclorch.cpp index a35007c50771..7727fc02b5ba 100644 --- a/orchagent/aclorch.cpp +++ b/orchagent/aclorch.cpp @@ -794,7 +794,6 @@ bool AclRange::remove() AclOrch::AclOrch(DBConnector *db, vector tableNames, PortsOrch *portOrch, MirrorOrch *mirrorOrch) : Orch(db, tableNames), - thread(AclOrch::collectCountersThread, this), m_portOrch(portOrch), m_mirrorOrch(mirrorOrch) { @@ -826,7 +825,6 @@ AclOrch::~AclOrch() m_bCollectCounters = false; m_sleepGuard.notify_all(); - join(); } void AclOrch::update(SubjectType type, void *cntx) diff --git a/orchagent/aclorch.h b/orchagent/aclorch.h index a005a7ec0a3a..67d7735fad32 100644 --- a/orchagent/aclorch.h +++ b/orchagent/aclorch.h @@ -3,7 +3,6 @@ #include #include -#include #include #include #include @@ -228,7 +227,7 @@ inline void split(string str, Iterable& out, char delim = ' ') } } -class AclOrch : public Orch, public Observer, public thread +class AclOrch : public Orch, public Observer { public: AclOrch(DBConnector *db, vector tableNames, PortsOrch *portOrch, MirrorOrch *mirrorOrch);