MCPcopy Create free account
hub / github.com/apple/foundationdb / shouldSpillByValue

Method shouldSpillByValue

fdbserver/TLogServer.actor.cpp:734–744  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

732 LogEpoch epoch() const { return recoveryCount; }
733
734 bool shouldSpillByValue(Tag t) const {
735 switch (logSpillType) {
736 case TLogSpillType::VALUE:
737 return true;
738 case TLogSpillType::REFERENCE:
739 return t.locality == tagLocalityTxs || t == txsTag;
740 default:
741 ASSERT(false);
742 return false;
743 }
744 }
745
746 bool shouldSpillByReference(Tag t) const { return !shouldSpillByValue(t); }
747

Calls

no outgoing calls

Tested by

no test coverage detected