Skip to content

Commit

Permalink
resets weight when service is declared as down
Browse files Browse the repository at this point in the history
  • Loading branch information
n0tlu5 committed Dec 22, 2024
1 parent 68c5bfb commit cefe1cc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pdns/lua-record.cc
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ class IsUpOracle
catch(std::exception& ne) {
if(status || first)
g_log<<Logger::Info<<"LUA record monitoring declaring "<<remstring<<" DOWN for URL "<<cd.url<<", error: "<<ne.what()<<endl;
setWeight(cd, 0);
setDown(cd);
}
}
Expand Down

0 comments on commit cefe1cc

Please sign in to comment.