Perform retention checks again UTC time
parent
8c1a28744c
commit
eb0480ebdf
|
@ -302,7 +302,7 @@ func (s *Server) EnforceRetentionPolicies() {
|
|||
for _, db := range s.databases {
|
||||
for _, rp := range db.policies {
|
||||
for _, g := range rp.shardGroups {
|
||||
if g.EndTime.Add(rp.Duration).Before(time.Now()) {
|
||||
if g.EndTime.Add(rp.Duration).Before(time.Now().UTC()) {
|
||||
log.Printf("shard group %d, retention policy %s, database %s due for deletion",
|
||||
g.ID, rp.Name, db.name)
|
||||
if err := s.DeleteShardGroup(db.name, rp.Name, g.ID); err != nil {
|
||||
|
|
Loading…
Reference in New Issue