mirror of
https://github.com/apple/foundationdb.git
synced 2025-05-15 02:18:39 +08:00
Merge pull request #577 from etschannen/release-6.0
Added a trace event related to max_notifications being reached
This commit is contained in:
commit
f49569075c
@ -216,6 +216,7 @@ ACTOR Future<Void> leaderRegister(LeaderElectionRegInterface interf, Key key) {
|
||||
} else {
|
||||
notify.push_back( req.reply );
|
||||
if(notify.size() > SERVER_KNOBS->MAX_NOTIFICATIONS) {
|
||||
TraceEvent(SevWarnAlways, "TooManyNotifications").detail("Amount", notify.size());
|
||||
for(int i=0; i<notify.size(); i++)
|
||||
notify[i].send( currentNominee.get() );
|
||||
notify.clear();
|
||||
@ -231,6 +232,7 @@ ACTOR Future<Void> leaderRegister(LeaderElectionRegInterface interf, Key key) {
|
||||
} else {
|
||||
notify.push_back( req.reply );
|
||||
if(notify.size() > SERVER_KNOBS->MAX_NOTIFICATIONS) {
|
||||
TraceEvent(SevWarnAlways, "TooManyNotifications").detail("Amount", notify.size());
|
||||
for(int i=0; i<notify.size(); i++)
|
||||
notify[i].send( currentNominee.get() );
|
||||
notify.clear();
|
||||
|
Loading…
x
Reference in New Issue
Block a user