Skip to content

Commit

Permalink
[pfcwd]: Assign different names to executors. (sonic-net#433)
Browse files Browse the repository at this point in the history
Having executors with same names results in only first being registered.

Signed-off-by: marian-pritsak <marianp@mellanox.com>
  • Loading branch information
marian-pritsak authored and lguohan committed Jan 29, 2018
1 parent 918cf5a commit bc58daa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions orchagent/pfcwdorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ PfcWdOrch<DropHandler, ForwardHandler>::PfcWdOrch(DBConnector *db, vector<string
auto interv = timespec { .tv_sec = PFC_WD_LOSSY_POLL_TIMEOUT_SEC, .tv_nsec = 0 };
auto timer = new SelectableTimer(interv);
auto executor = new ExecutableTimer(timer, this);
Orch::addExecutor("", executor);
Orch::addExecutor("COUNTERS_POLL", executor);
timer->start();
}

Expand Down Expand Up @@ -509,7 +509,7 @@ PfcWdSwOrch<DropHandler, ForwardHandler>::PfcWdSwOrch(
PfcWdSwOrch<DropHandler, ForwardHandler>::getCountersDb().get(),
"PFC_WD");
auto wdNotification = new Notifier(consumer, this);
Orch::addExecutor("", wdNotification);
Orch::addExecutor("PFC_WD", wdNotification);
}

template <typename DropHandler, typename ForwardHandler>
Expand Down

0 comments on commit bc58daa

Please sign in to comment.