When we found an invalid blob file number in the SST, it was not immediately allowed to be marked, and we added an adjustable option to limit the mark trigger.
auto should_mark = [&](FileMetaData* f) {
uint64_t cnt = 0;
for (auto depend : f->prop.dependence) {
if (depend.file_number !=
TransFileNumber(depend.file_number)->file_number)
cnt++;
}
return cnt >= invalid_blob_cnt;
};
When we found an invalid blob file number in the SST, it was not immediately allowed to be marked, and we added an adjustable option to limit the mark trigger.