@ -88,6 +88,10 @@ void PropertyBlockBuilder::AddTableProperty(const TableProperties& props) {
if ( ! props . column_family_name . empty ( ) ) {
if ( ! props . column_family_name . empty ( ) ) {
Add ( TablePropertiesNames : : kColumnFamilyName , props . column_family_name ) ;
Add ( TablePropertiesNames : : kColumnFamilyName , props . column_family_name ) ;
}
}
if ( ! props . compression_name . empty ( ) ) {
Add ( TablePropertiesNames : : kCompression , props . compression_name ) ;
}
}
}
Slice PropertyBlockBuilder : : Finish ( ) {
Slice PropertyBlockBuilder : : Finish ( ) {
@ -228,6 +232,8 @@ Status ReadProperties(const Slice& handle_value, RandomAccessFileReader* file,
new_table_properties - > merge_operator_name = raw_val . ToString ( ) ;
new_table_properties - > merge_operator_name = raw_val . ToString ( ) ;
} else if ( key = = TablePropertiesNames : : kPropertyCollectors ) {
} else if ( key = = TablePropertiesNames : : kPropertyCollectors ) {
new_table_properties - > property_collectors_names = raw_val . ToString ( ) ;
new_table_properties - > property_collectors_names = raw_val . ToString ( ) ;
} else if ( key = = TablePropertiesNames : : kCompression ) {
new_table_properties - > compression_name = raw_val . ToString ( ) ;
} else {
} else {
// handle user-collected properties
// handle user-collected properties
new_table_properties - > user_collected_properties . insert (
new_table_properties - > user_collected_properties . insert (