Skip to content

Commit

Permalink
Revert: swss: flush g_asicState after each event is done sonic-net#570
Browse files Browse the repository at this point in the history
  • Loading branch information
qiluo-msft committed Oct 23, 2020
1 parent 3142693 commit 81f2599
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions orchagent/orchdaemon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,12 @@ void OrchDaemon::start()

if (ret == Select::TIMEOUT)
{
/* Let sairedis to flush all SAI function call to ASIC DB.
* Normally the redis pipeline will flush when enough request
* accumulated. Still it is possible that small amount of
* requests live in it. When the daemon has nothing to do, it
* is a good chance to flush the pipeline */
flush();
continue;
}

Expand All @@ -484,14 +490,6 @@ void OrchDaemon::start()
for (Orch *o : m_orchList)
o->doTask();

/* Let sairedis to flush all SAI function call to ASIC DB.
* Normally the redis pipeline will flush when enough request
* accumulated. Still it is possible that small amount of
* requests live in it. When the daemon has finished events/tasks, it
* is a good chance to flush the pipeline before next select happened.
*/
flush();

/*
* Asked to check warm restart readiness.
* Not doing this under Select::TIMEOUT condition because of
Expand Down

0 comments on commit 81f2599

Please sign in to comment.