Skip to content

Commit

Permalink
Fix contrail-collector back pressure mechanism
Browse files Browse the repository at this point in the history
contrail-collector SM queue back presssure mechanism was not
working since the SM 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: Ieaf65d3d77356b9ac471e9479a1fb743c16fe6a1
Closes-Bug: #1528380
  • Loading branch information
Megh Bhatt committed Dec 21, 2015
1 parent 308f607 commit 68c2ef7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions library/cpp/sandesh_state_machine.cc
Expand Up @@ -781,9 +781,10 @@ void SandeshStateMachine::SetSandeshMessageDropLevel(size_t queue_count,
Sandesh::LevelToString(level) << "], SM QUEUE COUNT: " <<
queue_count);
message_drop_level_ = level;
if (!cb.empty()) {
cb();
}
}
// Always invoke the callback
if (!cb.empty()) {
cb();
}
}

Expand Down

0 comments on commit 68c2ef7

Please sign in to comment.