Skip to content

mtca/publisher: make MirrorID nullable - #8968

Merged
jsha merged 1 commit into
mainfrom
nullable-mirrorid
Aug 28, 2026
Merged

mtca/publisher: make MirrorID nullable#8968
jsha merged 1 commit into
mainfrom
nullable-mirrorid

Conversation

@jsha

@jsha jsha commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

This field is null when a checkpoint is first created. Represent it as a *string. This fixes a unittest error I was seeing locally:

--- FAIL: TestPublish (0.01s)
    mtpublisher_test.go:190: p.Publish(): selecting the latest checkpoint: failed to select one *mtpublisher.checkpointEntry (unknown table): sql: Scan error on column index 3, name "mirrorID": converting NULL to string is unsupported

This field is null when a checkpoint is first created. Represent it as a
`*string`. This fixes a unittest error I was seeing locally:

--- FAIL: TestPublish (0.01s)
    mtpublisher_test.go:190: p.Publish(): selecting the latest checkpoint: failed to select one *mtpublisher.checkpointEntry (unknown table): sql: Scan error on column index 3, name "mirrorID": converting NULL to string is unsupported
@jsha
jsha marked this pull request as ready for review August 24, 2026 16:35
@jsha
jsha requested a review from a team as a code owner August 24, 2026 16:35
@jsha
jsha requested a review from beautifulentropy August 24, 2026 16:35

@aarongable aarongable 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.

LGTM, note that this will have merge conflicts with #8971

@jsha
jsha merged commit 64602f5 into main Aug 28, 2026
19 checks passed
@jsha
jsha deleted the nullable-mirrorid branch August 28, 2026 16:49
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