Const some random functions that are trivially const.

For code hygiene reasons only.
This commit is contained in:
Alex Miller 2019-07-16 19:09:09 -07:00
parent 690ffb91b0
commit 9396eedd11
2 changed files with 6 additions and 6 deletions

View File

@ -706,11 +706,11 @@ struct ILogSystem {
virtual void getPushLocations(std::vector<Tag> const& tags, std::vector<int>& locations, bool allLocations = false) = 0;
virtual bool hasRemoteLogs() = 0;
virtual bool hasRemoteLogs() const = 0;
virtual Tag getRandomRouterTag() = 0;
virtual Tag getRandomRouterTag() const = 0;
virtual Tag getRandomTxsTag() = 0;
virtual Tag getRandomTxsTag() const = 0;
virtual void stopRejoins() = 0;

View File

@ -1221,15 +1221,15 @@ struct TagPartitionedLogSystem : ILogSystem, ReferenceCounted<TagPartitionedLogS
}
}
virtual bool hasRemoteLogs() {
virtual bool hasRemoteLogs() const {
return logRouterTags > 0 || pseudoLocalities.size() > 0;
}
virtual Tag getRandomRouterTag() {
virtual Tag getRandomRouterTag() const {
return Tag(tagLocalityLogRouter, deterministicRandom()->randomInt(0, logRouterTags));
}
virtual Tag getRandomTxsTag() {
virtual Tag getRandomTxsTag() const {
if(txsTags==0) {
return txsTag;
}