diff --git a/table/plain/plain_table_builder.h b/table/plain/plain_table_builder.h index 863882baf..27c07898f 100644 --- a/table/plain/plain_table_builder.h +++ b/table/plain/plain_table_builder.h @@ -85,7 +85,16 @@ class PlainTableBuilder : public TableBuilder { // Finish() call, returns the size of the final generated file. uint64_t FileSize() const override; - TableProperties GetTableProperties() const override { return properties_; } + TableProperties GetTableProperties() const override { + TableProperties ret = properties_; + for (const auto& collector : table_properties_collectors_) { + for (const auto& prop : collector->GetReadableProperties()) { + ret.readable_properties.insert(prop); + } + collector->Finish(&ret.user_collected_properties).PermitUncheckedError(); + } + return ret; + } bool SaveIndexInFile() const { return store_index_in_file_; }