Skip to content

Commit

Permalink
[mirrororch]: Fix bug: return false when SAI API call fails (#607)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shuotian Cheng authored and qiluo-msft committed Sep 6, 2018
1 parent cbc5a05 commit 6d40d85
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions orchagent/mirrororch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,8 @@ bool MirrorOrch::activateSession(const string& name, MirrorEntry& session)
{
SWSS_LOG_ERROR("Failed to activate mirroring session %s\n", name.c_str());
session.status = false;

return false;
}

session.status = true;
Expand Down

0 comments on commit 6d40d85

Please sign in to comment.