diff --git a/db/builder.cc b/db/builder.cc index f419882..729f9fd 100644 --- a/db/builder.cc +++ b/db/builder.cc @@ -41,14 +41,10 @@ Status BuildTable(const std::string& dbname, } // Finish and check for builder errors + s = builder->Finish(); if (s.ok()) { - s = builder->Finish(); - if (s.ok()) { - meta->file_size = builder->FileSize(); - assert(meta->file_size > 0); - } - } else { - builder->Abandon(); + meta->file_size = builder->FileSize(); + assert(meta->file_size > 0); } delete builder;