Skip to content

Commit

Permalink
haiqi review
Browse files Browse the repository at this point in the history
  • Loading branch information
davemarco committed Feb 6, 2025
1 parent 920cfb8 commit 0628636
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 3 additions & 0 deletions components/core/src/clp/streaming_archive/writer/Archive.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -593,6 +593,9 @@ void Archive::close_segment_and_persist_file_metadata(

for (auto file : files) {
file->mark_as_in_committed_segment();
// Files in this collection only hold metadata. Emplaced files have called method
// `File::append_to_segment()` which deallocates memory for timestamp,
// logtype, and variable fields.
m_file_metadata_for_global_update.emplace_back(file);
}

Expand Down
3 changes: 0 additions & 3 deletions components/core/src/clp/streaming_archive/writer/Archive.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -321,9 +321,6 @@ class Archive {
std::vector<File*> m_files_with_timestamps_in_segment;
std::vector<File*> m_files_without_timestamps_in_segment;

// Files in this collection only hold metadata. Files are added to this collection after
// `File::append_to_segment()` is called, which deallocates memory for timestamp,
// logtype, and variable fields.
std::vector<File*> m_file_metadata_for_global_update;

size_t m_target_segment_uncompressed_size;
Expand Down

0 comments on commit 0628636

Please sign in to comment.