SERVER-75020 Fix fle coverity defects

This commit is contained in:
Shreyas Kalyan
2023-03-27 15:34:14 -04:00
committed by Evergreen Agent
parent 44e4a2f0d5
commit a1bc513d16
2 changed files with 2 additions and 2 deletions

View File

@@ -5867,7 +5867,7 @@ bool EncryptedPredicateEvaluatorV2::evaluate(
uassert(7399501, "Invalid encrypted indexed field", subSubType == indexedValueType);
auto metadataBlocks = extractMetadataBlocks(data);
std::vector<ConstDataRange> metadataBlocks = extractMetadataBlocks(data);
for (const auto& zeroDecryptionToken : _zerosDecryptionTokens) {
for (auto metadataBlock : metadataBlocks) {

View File

@@ -86,7 +86,7 @@ public:
private:
PrfBlock _serverToken;
std::vector<PrfBlock> _edcTokens;
int64_t _contentionFactor;
int64_t _contentionFactor{0};
stdx::unordered_set<PrfBlock> _cachedEDCTokens;
};