Const some random functions that are trivially const.
For code hygiene reasons only.
This commit is contained in:
parent
690ffb91b0
commit
9396eedd11
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue