Skip to content

Commit

Permalink
Retention policy and database were reversed in log
Browse files Browse the repository at this point in the history
  • Loading branch information
otoolep committed Feb 11, 2015
1 parent 0c8ded4 commit 19cd550
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.go
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ func (s *Server) EnforceRetentionPolicies() {
for _, g := range rp.shardGroups {
if g.EndTime.Add(rp.Duration).Before(time.Now()) {
log.Printf("shard group %d, retention policy %s, database %s due for deletion",
g.ID, db.name, rp.Name)
g.ID, rp.Name, db.name)
if err := s.DeleteShardGroup(db.name, rp.Name, g.ID); err != nil {
log.Printf("failed to request deletion of shard group %d: %s", g.ID, err.Error())
}
Expand Down

0 comments on commit 19cd550

Please sign in to comment.