mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-19 12:34:29 +02:00
volume.fsck: add help text explaining cutoffTimeAgo parameter
This commit is contained in:
1 parent
dc5a81b1be
commit
dfd18ae231
1 file changed
+7
@@ -76,9 +76,16 @@ func (c *commandVolumeFsck) Help() string {
|
|||||||
2. collect all file ids from the filer, as set B
|
2. collect all file ids from the filer, as set B
|
||||||
3. find out the set B subtract A
|
3. find out the set B subtract A
|
||||||
|
|
||||||
|
-cutoffTimeAgo is used to only check chunks older than the cutoff time.
|
||||||
|
This is important because:
|
||||||
|
Chunks are uploaded to volume servers before metadata is committed to filer.
|
||||||
|
A newly uploaded chunk may appear as orphan if metadata commit is still pending.
|
||||||
|
The default 5h cutoff provides sufficient buffer for metadata commits.
|
||||||
|
|
||||||
`
|
`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
func (c *commandVolumeFsck) HasTag(tag CommandTag) bool {
|
func (c *commandVolumeFsck) HasTag(tag CommandTag) bool {
|
||||||
return tag == ResourceHeavy
|
return tag == ResourceHeavy
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user