Skip to content

Commit

Permalink
Update comment re shard group creation and sorting
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
otoolep committed Sep 1, 2015
1 parent fc6ce43 commit b423599
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion meta/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,9 @@ func (data *Data) CreateShardGroup(database, policy string, timestamp time.Time)
}
}

// Retention policy has a new shard group, so update the policy.
// Retention policy has a new shard group, so update the policy. Shard
// Groups must be stored in sorted order, as other parts of the system
// assume this to be the case.
rpi.ShardGroups = append(rpi.ShardGroups, sgi)
sort.Sort(ShardGroupInfos(rpi.ShardGroups))

Expand Down

0 comments on commit b423599

Please sign in to comment.