diff options
author | Pavlo Strokov <pstrokov@gitlab.com> | 2021-10-06 13:14:51 +0300 |
---|---|---|
committer | Pavlo Strokov <pstrokov@gitlab.com> | 2021-10-06 13:14:51 +0300 |
commit | 2b424740fc73419f40bd74c2f05db3d7ef774198 (patch) | |
tree | 6e4fb7845ecf67a6d759b0315c37403bc40e1084 | |
parent | cd94be7ff514fd2e3e84910c42a46995c444b70a (diff) | |
parent | 4f0368b6b6f0f00729736cdb3d8fa50848c8b677 (diff) |
Merge branch 'pks-datastore-cleanup-timezone' into 'master'
datastore: Fix storage cleanup's handling of timezones
See merge request gitlab-org/gitaly!3930
-rw-r--r-- | internal/praefect/datastore/storage_cleanup.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/praefect/datastore/storage_cleanup.go b/internal/praefect/datastore/storage_cleanup.go index 2c50f2aac..adc43401b 100644 --- a/internal/praefect/datastore/storage_cleanup.go +++ b/internal/praefect/datastore/storage_cleanup.go @@ -71,7 +71,7 @@ func (ss *StorageCleanup) AcquireNextStorage(ctx context.Context, inactive, upda if err := ss.db.QueryRowContext( ctx, `UPDATE storage_cleanups - SET triggered_at = (NOW() AT TIME ZONE 'UTC') + SET triggered_at = NOW() WHERE (virtual_storage, storage) IN ( SELECT virtual_storage, storage FROM storage_cleanups |