Skip to content

Commit

Permalink
Update dbms/src/Storages/DeltaMerge/Delta/MemTableSet.h
Browse files Browse the repository at this point in the history
Co-authored-by: JaySon <tshent@qq.com>
  • Loading branch information
2 people authored and ti-chi-bot committed Mar 23, 2022
1 parent 8b19243 commit c203402
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dbms/src/Storages/DeltaMerge/Delta/MemTableSet.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ class MemTableSet : public std::enable_shared_from_this<MemTableSet>
/// To avoid serialize the same schema between continuous ColumnFileInMemory and ColumnFileTiny instance.
BlockPtr last_schema;

// Note that we must update `column_files_count` for outer thread-safe after `column_files` changed
ColumnFiles column_files;
// TODO: check the proper memory_order when use this atomic variable
std::atomic<size_t> column_files_count;
Expand Down

0 comments on commit c203402

Please sign in to comment.