Skip to content

Conversation

@SteveLauC
Copy link
Collaborator

@SteveLauC SteveLauC commented Jan 4, 2026

Build phase constants TP_PHASE_LOADING and TP_PHASE_WRITING were defined in both am/vacuum.c and am/build.c, so this commit removes the definitions in am/vacuum.c.

It also moves tp_buildphasename() and tp_spill_memtable() from am/vacuum.c to am/build.c as they logically belong there.

Copy link
Collaborator

@tjgreen42 tjgreen42 left a comment

Choose a reason for hiding this comment

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

I accidentally pushed some commits directly to main, and your PR is an unfortunate victim as it now contains those commits as well. (I've since backed out those commits). Can you clean things up? Thanks for the contributions!

Build phase constants `TP_PHASE_LOADING` and `TP_PHASE_WRITING` were
defined in both `am/vacuum.c` and `am/build.c`, so this commit removes
the definitions in `am/vacuum.c`.

It also moves `tp_buildphasename()` from `am/vacuum.c` to `am/build.c`
as it logically belongs there.
@SteveLauC SteveLauC force-pushed the chore/duplicate_phasebuild branch from 93d9b22 to b00b651 Compare January 4, 2026 23:28
@SteveLauC
Copy link
Collaborator Author

Can you clean things up?

Sure :)

Done

@SteveLauC SteveLauC changed the title refactor: move tp_buildphasename to build.c and remove duplicates refactor: move buildphasename/spill_memtable to build.c and remove duplicates Jan 5, 2026
@tjgreen42 tjgreen42 merged commit 72d1a49 into timescale:main Jan 5, 2026
13 checks passed
@SteveLauC SteveLauC deleted the chore/duplicate_phasebuild branch January 5, 2026 05:25
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.

2 participants