Skip to content

Track create and freeze times for disk indexes.#37228

Merged
arnej27959 merged 2 commits into
masterfrom
toregge/track-create-and-freeze-time-for-disk-indexes
Jun 18, 2026
Merged

Track create and freeze times for disk indexes.#37228
arnej27959 merged 2 commits into
masterfrom
toregge/track-create-and-freeze-time-for-disk-indexes

Conversation

@toregge

@toregge toregge commented Jun 17, 2026

Copy link
Copy Markdown
Member

@vekterli or @arnej27959 : please review

@toregge toregge requested review from arnej27959 and vekterli June 17, 2026 10:45
vekterli
vekterli previously approved these changes Jun 17, 2026

@vekterli vekterli left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

}

void DiskIndex::get_schema_timestamp() {
auto schema_mod_time = FileKit::getModificationTime(_indexDir + "/schema.txt.orig");

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be nice with a small comment on why one is preferred over the other

common::CreateAndFreezeTimes _create_and_freeze_times;

void calculate_nonfield_size_on_disk();
void get_schema_timestamp();

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider calling this something else than get_ since it updates internal state, but at first glance looks like a slightly peculiar void-typed accessor. Perhaps "update", "assign" or "calculate" (re: the method above)?

@arnej27959 arnej27959 merged commit 23f604c into master Jun 18, 2026
3 checks passed
@arnej27959 arnej27959 deleted the toregge/track-create-and-freeze-time-for-disk-indexes branch June 18, 2026 06:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants