File tree 1 file changed +8
-5
lines changed
1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -124,11 +124,6 @@ void OrchDaemon::start()
124
124
125
125
if (ret == Select::TIMEOUT)
126
126
{
127
- /* After every TIMEOUT, periodically check all m_toSync map to
128
- * execute all the remaining tasks that need to be retried. */
129
- for (Orch *o : m_orchList)
130
- o->doTask ();
131
-
132
127
/* Let sairedis to flush all SAI function call to ASIC DB.
133
128
* Normally the redis pipeline will flush when enough request
134
129
* accumulated. Still it is possible that small amount of
@@ -140,6 +135,14 @@ void OrchDaemon::start()
140
135
141
136
Orch *o = getOrchByConsumer ((ConsumerStateTable *)s);
142
137
o->execute (((ConsumerStateTable *)s)->getTableName ());
138
+
139
+ /* After each iteration, periodically check all m_toSync map to
140
+ * execute all the remaining tasks that need to be retried. */
141
+
142
+ /* TODO: Abstract Orch class to have a specific todo list */
143
+ for (Orch *o : m_orchList)
144
+ o->doTask ();
145
+
143
146
}
144
147
}
145
148
You can’t perform that action at this time.
0 commit comments