diff --git a/syncd/syncd.cpp b/syncd/syncd.cpp index 792cf5a9bb1e..eeb110984499 100644 --- a/syncd/syncd.cpp +++ b/syncd/syncd.cpp @@ -3593,6 +3593,15 @@ int syncd_main(int argc, char **argv) * lead to unable to find some objects. */ + SWSS_LOG_NOTICE("is asic queue empty: %d",asicState->empty()); + + while (!asicState->empty()) + { + processEvent(*asicState.get()); + } + + SWSS_LOG_NOTICE("drained queue"); + shutdownType = handleRestartQuery(*restartQuery); if (shutdownType != SYNCD_RESTART_TYPE_PRE_SHUTDOWN) {