Skip to content

Commit

Permalink
bugfix: --backup-meta could be 0 to disable backup (#2275)
Browse files Browse the repository at this point in the history
  • Loading branch information
davies authored Jun 19, 2022
1 parent 20f2b03 commit 7d870d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/mount.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ func getVfsConf(c *cli.Context, metaConf *meta.Config, format *meta.Format, chun
Chunk: chunkConf,
BackupMeta: duration(c.String("backup-meta")),
}
if cfg.BackupMeta < time.Minute*5 {
if cfg.BackupMeta > 0 && cfg.BackupMeta < time.Minute*5 {
logger.Fatalf("backup-meta should not be less than 5 minutes: %s", cfg.BackupMeta)
}
return cfg
Expand Down

0 comments on commit 7d870d7

Please sign in to comment.