Skip to content

Commit

Permalink
[orchagent]: Fix bug missing exclamation point (sonic-net#372)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shuotian Cheng authored Nov 6, 2017
1 parent 8fc09d0 commit b641aee
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion orchagent/copporch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ void CoppOrch::doTask(Consumer &consumer)
{
SWSS_LOG_ENTER();

if (gPortsOrch->isInitDone())
if (!gPortsOrch->isInitDone())
{
return;
}
Expand Down
2 changes: 1 addition & 1 deletion orchagent/fdborch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ void FdbOrch::doTask(Consumer& consumer)
{
SWSS_LOG_ENTER();

if (gPortsOrch->isInitDone())
if (!gPortsOrch->isInitDone())
{
return;
}
Expand Down
1 change: 0 additions & 1 deletion orchagent/orch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ using namespace swss;
extern int gBatchSize;

extern mutex gDbMutex;
extern PortsOrch *gPortsOrch;

extern bool gSwssRecord;
extern ofstream gRecordOfs;
Expand Down

0 comments on commit b641aee

Please sign in to comment.