Skip to content

objstore: WithStoreTime reports when the time is this host's - #12

Merged
Seif Lotfy (seiflotfy) merged 1 commit into
mainfrom
store-time-source
Nov 14, 2026
Merged

Seif Lotfy (seiflotfy) merged 1 commit into
mainfrom
store-time-source

Conversation

@seiflotfy

Copy link
Copy Markdown
Member

Architecture changes: none.

Judge item 70: the host-clock stand-in (gcs always; s3 and azure for an answer without a Date) was silent. WithStoreTime(ctx, &t, &host) now sets host when the time is this host's clock standing in for the store's; nil ignores it. fs, mem and the R2 binding report false: their clock is their store's. Tests: s3 (Date: false; no Date: true), gcs (true), fs (false). A branch for the coordinator to push to main.

The host-clock stand-in for a store that gives no time (gcs always; s3
and azure for an answer without a Date) was silent: behind a proxy that
strips Date, a caller timing by the store got this host's clock with no
way to know. WithStoreTime takes a host flag, set when the time is this
host's; nil ignores it. A file store's, mem's and a Worker's clock are
their store's, so they report false.

Co-authored-by: Seif Lotfy <seif@axiom.co>
Amp-Thread-ID: https://ampcode.com/threads/T-01a1dba3-f1a0-7360-bec3-57072ae78b08
@seiflotfy
Seif Lotfy (seiflotfy) merged commit d463dd3 into main Nov 14, 2026
4 checks passed
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