[NetStandby] Fix the bug that LogRouteService still provide server list when there is no newer log
This commit is contained in:
committed by
ob-robot
parent
de0a113288
commit
cae02e579a
@ -133,12 +133,12 @@ private:
|
|||||||
// because the log could be archived, and the logroute service doesn't know whether
|
// because the log could be archived, and the logroute service doesn't know whether
|
||||||
// archive is on or log exists in archive, so the rpc would be lauched.
|
// archive is on or log exists in archive, so the rpc would be lauched.
|
||||||
// In this perspective, the log is served, because we need to lauch rpc.
|
// In this perspective, the log is served, because we need to lauch rpc.
|
||||||
return lsn <= end_lsn_;
|
return lsn < end_lsn_;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool is_lower_bound(const palf::LSN &lsn)
|
bool is_lower_bound(const palf::LSN &lsn)
|
||||||
{
|
{
|
||||||
return lsn <= start_lsn_;
|
return lsn < start_lsn_;
|
||||||
}
|
}
|
||||||
|
|
||||||
int64_t to_string(char *buffer, int64_t length) const;
|
int64_t to_string(char *buffer, int64_t length) const;
|
||||||
|
|||||||
Reference in New Issue
Block a user