Mark TCServerInfo::isCorrectStoreType const
This commit is contained in:
parent
904deb9516
commit
0aafd9d5f0
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue