Skip to content

Commit

Permalink
Fix contrail-collector back pressure mechanism
Browse files Browse the repository at this point in the history
contrail-collector DB queue back presssure mechanism was not
working since the DB drop level is initialized to INVALID and
even the water marks levels are INVALID and hence the defer/undefer
callbacks are not called.

Change-Id: Ib28141a69aeed3c4ad6f50abbaed2a285e3e7db2
Partial-Bug: #1528380
(cherry picked from commit 7e4ad73)
  • Loading branch information
Megh Bhatt authored and Raj Reddy committed Jan 5, 2016
1 parent 2b35408 commit b425cf6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/analytics/db_handler.cc
Expand Up @@ -147,9 +147,10 @@ void DbHandler::SetDropLevel(size_t queue_count, SandeshLevel::type level,
Sandesh::LevelToString(level) << "], DB QUEUE COUNT: " <<
queue_count);
drop_level_ = level;
if (!cb.empty()) {
cb();
}
}
// Always invoke the callback
if (!cb.empty()) {
cb();
}
}

Expand Down

0 comments on commit b425cf6

Please sign in to comment.