Code review nits

const correctness and file renaming in comment.

Co-Authored-By: Jingyu Zhou <jingyuzhou@gmail.com>
This commit is contained in:
Alex Miller 2019-10-03 15:53:39 -07:00 committed by GitHub
parent 9f9d2dff42
commit 9401a6941a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

View File

@ -1,5 +1,6 @@
/*
* TLogServer.actor.cpp
* OldTLogServer_6_2.actor.cpp
*
* This source file is part of the FoundationDB open source project
*

View File

@ -585,7 +585,8 @@ struct LogData : NonCopyable, public ReferenceCounted<LogData> {
LogEpoch epoch() const { return recoveryCount; }
bool shouldSpillByValue( Tag t ) {
bool shouldSpillByValue( Tag t ) const {
switch (logSpillType) {
case TLogSpillType::VALUE:
return true;
@ -596,7 +597,8 @@ struct LogData : NonCopyable, public ReferenceCounted<LogData> {
return false;
}
}
bool shouldSpillByReference( Tag t ) {
bool shouldSpillByReference( Tag t ) const {
return !shouldSpillByValue( t );
}
};