File tree 2 files changed +6
-13
lines changed
2 files changed +6
-13
lines changed Original file line number Diff line number Diff line change @@ -281,10 +281,7 @@ int main(int argc, char **argv)
281
281
exit (EXIT_FAILURE);
282
282
}
283
283
284
- if (!WarmStart::isWarmStart ())
285
- {
286
- syncd_apply_view ();
287
- }
284
+ syncd_apply_view ();
288
285
289
286
orchDaemon->start ();
290
287
}
Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ using namespace swss;
17
17
18
18
extern sai_switch_api_t * sai_switch_api;
19
19
extern sai_object_id_t gSwitchId ;
20
- extern void syncd_apply_view ();
21
20
/*
22
21
* Global orch daemon variables
23
22
*/
@@ -263,6 +262,11 @@ bool OrchDaemon::init()
263
262
264
263
m_orchList.push_back (&CounterCheckOrch::getInstance (m_configDb));
265
264
265
+ if (WarmStart::isWarmStart ())
266
+ {
267
+ warmRestoreAndSyncUp ();
268
+ }
269
+
266
270
return true ;
267
271
}
268
272
@@ -285,8 +289,6 @@ void OrchDaemon::start()
285
289
{
286
290
SWSS_LOG_ENTER ();
287
291
288
- warmRestoreAndSyncUp ();
289
-
290
292
for (Orch *o : m_orchList)
291
293
{
292
294
m_select->addSelectables (o->getSelectables ());
@@ -336,11 +338,6 @@ void OrchDaemon::start()
336
338
*/
337
339
void OrchDaemon::warmRestoreAndSyncUp ()
338
340
{
339
- if (!WarmStart::isWarmStart ())
340
- {
341
- return ;
342
- }
343
-
344
341
WarmStart::setWarmStartState (" orchagent" , WarmStart::INIT);
345
342
346
343
for (Orch *o : m_orchList)
@@ -372,7 +369,6 @@ void OrchDaemon::warmRestoreAndSyncUp()
372
369
warmRestoreValidation ();
373
370
374
371
SWSS_LOG_NOTICE (" Orchagent state restore done" );
375
- syncd_apply_view ();
376
372
377
373
/* TODO: perform port and fdb state sync up*/
378
374
You can’t perform that action at this time.
0 commit comments