Code review nits
const correctness and file renaming in comment. Co-Authored-By: Jingyu Zhou <jingyuzhou@gmail.com>
This commit is contained in:
parent
9f9d2dff42
commit
9401a6941a
|
@ -1,5 +1,6 @@
|
|||
/*
|
||||
* TLogServer.actor.cpp
|
||||
* OldTLogServer_6_2.actor.cpp
|
||||
|
||||
*
|
||||
* This source file is part of the FoundationDB open source project
|
||||
*
|
||||
|
|
|
@ -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 );
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue