Skip to content

Move some directory helpers to Directory - #13245

Merged
JosiahWI merged 7 commits into
apache:masterfrom
JosiahWI:refactor/directory-private-methods
Jun 9, 2026
Merged

Move some directory helpers to Directory#13245
JosiahWI merged 7 commits into
apache:masterfrom
JosiahWI:refactor/directory-private-methods

Conversation

@JosiahWI

@JosiahWI JosiahWI commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

This is a follow up on #11945 which @masaori335 requested. It moves a handful of helper functions (those that need to access members of Directory) to the Directory type, so that they become methods. Some of them were inline; I have kept them inline to preserve the intent, so those function definitions have been moved to the header file.

@JosiahWI JosiahWI added this to the 11.0.0 milestone Jun 8, 2026
@JosiahWI
JosiahWI requested a review from masaori335 June 8, 2026 11:40
@JosiahWI JosiahWI self-assigned this Jun 8, 2026
Copilot AI review requested due to automatic review settings June 8, 2026 11:40
@JosiahWI
JosiahWI force-pushed the refactor/directory-private-methods branch from 288815b to f8f97d9 Compare June 8, 2026 11:52

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

Comment thread src/iocore/cache/CacheDir.cc
Comment thread src/iocore/cache/CacheDir.cc Outdated
Comment thread src/iocore/cache/CacheDir.cc Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 8, 2026 17:44
* Fix conditionally compiled `bucket_loop_fix` callsites

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

Comment thread src/iocore/cache/CacheDir.cc
Comment thread src/iocore/cache/CacheDir.cc
Comment thread src/iocore/cache/CacheDir.cc

@masaori335 masaori335 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good to me. Thank you for working this.

@JosiahWI
JosiahWI merged commit 0847dc6 into apache:master Jun 9, 2026
15 checks passed
@JosiahWI
JosiahWI deleted the refactor/directory-private-methods branch June 9, 2026 11:56
cmcfarlen pushed a commit to cmcfarlen/trafficserver that referenced this pull request Jul 29, 2026
* Move `dir_init_segment` to `Directory`

* Move `dir_init_segment` to `Directory`

* Move `dir_bucket_loop_fix` to `Directory`

* Move `unlink_from_freelist` to `Directory`

* Move `dir_delete_entry` to `Directory`

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
cmcfarlen pushed a commit to cmcfarlen/trafficserver that referenced this pull request Jul 29, 2026
* Move `dir_init_segment` to `Directory`

* Move `dir_init_segment` to `Directory`

* Move `dir_bucket_loop_fix` to `Directory`

* Move `unlink_from_freelist` to `Directory`

* Move `dir_delete_entry` to `Directory`

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
(cherry picked from commit 0847dc6)
@cmcfarlen cmcfarlen moved this to Picked v10.2.0 in ATS v10.2.x Jul 29, 2026
@cmcfarlen cmcfarlen modified the milestones: 11.0.0, 10.2.0 Jul 29, 2026
@github-project-automation github-project-automation Bot moved this from Picked v10.2.0 to For v10.2.0 in ATS v10.2.x Jul 29, 2026
@cmcfarlen cmcfarlen moved this from For v10.2.0 to Picked v10.2.0 in ATS v10.2.x Jul 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Picked v10.2.0

Development

Successfully merging this pull request may close these issues.

4 participants