Repository navigation
objstore: WithStoreTime reports when the time is this host's - #12
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 setshostwhen 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.