You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In BlobGCJob::InstallOutputBlobFiles, which is blob_gc_joob.cc:415, the status are not checked.
for (auto& builder : blob_file_builders_) {
BlobFileBuilder::OutContexts contexts;
s = builder.second->Finish(&contexts); // Status not checkBatchWriteNewIndices(contexts, &s); // Status is writtenif (!s.ok()) {
break;
}
metrics_.gc_num_new_files++;
At the same time, I think the BatchWriteNewIndices(contexts, &s) can be rewritten like s = BatchWriteNewIndices(contexts)
This will ensure code consistency as every funciton return a stauts.
I can make a PR to fix thoese 2 things If you like.
The text was updated successfully, but these errors were encountered:
In BlobGCJob::InstallOutputBlobFiles, which is blob_gc_joob.cc:415, the status are not checked.
At the same time, I think the
BatchWriteNewIndices(contexts, &s)
can be rewritten likes = BatchWriteNewIndices(contexts)
This will ensure code consistency as every funciton return a stauts.
I can make a PR to fix thoese 2 things If you like.
The text was updated successfully, but these errors were encountered: