mirror of
https://github.com/apple/foundationdb.git
synced 2025-05-15 18:32:18 +08:00
return early if streams is empty
This commit is contained in:
parent
2024237e5d
commit
070894a597
@ -1338,6 +1338,10 @@ static RangeResult mergeDeltaStreams(const BlobGranuleChunkRef& chunk,
|
|||||||
ASSERT(streams.size() < std::numeric_limits<int16_t>::max());
|
ASSERT(streams.size() < std::numeric_limits<int16_t>::max());
|
||||||
ASSERT(startClears.size() == streams.size());
|
ASSERT(startClears.size() == streams.size());
|
||||||
|
|
||||||
|
if (streams.empty()) {
|
||||||
|
return RangeResult{};
|
||||||
|
}
|
||||||
|
|
||||||
int prefixLen = commonPrefixLength(chunk.keyRange.begin, chunk.keyRange.end);
|
int prefixLen = commonPrefixLength(chunk.keyRange.begin, chunk.keyRange.end);
|
||||||
|
|
||||||
// next element for each stream
|
// next element for each stream
|
||||||
|
Loading…
x
Reference in New Issue
Block a user