Skip to content
This repository has been archived by the owner on Jul 12, 2023. It is now read-only.

Commit

Permalink
include end time in export filenames
Browse files Browse the repository at this point in the history
  • Loading branch information
gurayAlsac committed Jun 10, 2020
1 parent cccb07e commit d41ab7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/export/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ func (s *Server) createIndex(ctx context.Context, eb *model.ExportBatch, newObje
}

func exportFilename(eb *model.ExportBatch, batchNum int) string {
return fmt.Sprintf("%s/%d-%05d%s", eb.FilenameRoot, eb.StartTimestamp.Unix(), batchNum, filenameSuffix)
return fmt.Sprintf("%s/%d-%d-%05d%s", eb.FilenameRoot, eb.StartTimestamp.Unix(), eb.EndTimestamp.Unix(), batchNum, filenameSuffix)
}

func exportIndexFilename(eb *model.ExportBatch) string {
Expand Down

0 comments on commit d41ab7d

Please sign in to comment.