Mark TCServerInfo::isCorrectStoreType const

This commit is contained in:
sfc-gh-tclinkenbeard 2021-02-01 20:08:47 -08:00
parent 904deb9516
commit 0aafd9d5f0
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ struct TCServerInfo : public ReferenceCounted<TCServerInfo> {
}
}
bool isCorrectStoreType(KeyValueStoreType configStoreType) {
bool isCorrectStoreType(KeyValueStoreType configStoreType) const {
// A new storage server's store type may not be set immediately.
// If a storage server does not reply its storeType, it will be tracked by failure monitor and removed.
return (storeType == configStoreType || storeType == KeyValueStoreType::END);