-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
importer: Fix updated < time violations due to clock skew
There can be some clock skew between us and logs.tf. This could result in our local updated time being less than the log's time, violating the check constraint. Fix this by taking the greatest of now and time. When updating logs, take the greatest between now and updated + 1 (to ensure updated always changes). Fixes: 7aed5b6 ("Add updated field to logs") Signed-off-by: Sean Anderson <[email protected]>
- Loading branch information
Showing
3 changed files
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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