Skip to content

Commit

Permalink
[backend] support keepalive state in the server status
Browse files Browse the repository at this point in the history
  • Loading branch information
mlschroe committed Oct 5, 2023
1 parent 09e8f48 commit cbcffc0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/backend/BSServer.pm
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,8 @@ sub serverstatus_str {
$state = 'F';
} elsif ($state == 2) {
$state = 'R';
} elsif ($state == 3) {
$state = 'K';
} else {
$state = '?';
}
Expand Down
2 changes: 2 additions & 0 deletions src/backend/bs_serverstatus
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@ while(1) {
$state = 'F';
} elsif ($state == 2) {
$state = 'R';
} elsif ($state == 3) {
$state = 'K';
} else {
$state = '?';
}
Expand Down

0 comments on commit cbcffc0

Please sign in to comment.