mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
add more comments
This commit is contained in:
parent
981c981fa8
commit
6fc72b19bb
|
@ -21,6 +21,9 @@ var (
|
||||||
|
|
||||||
/*
|
/*
|
||||||
This is to resolve an one-time issue that caused inconsistency with .dat and .idx files.
|
This is to resolve an one-time issue that caused inconsistency with .dat and .idx files.
|
||||||
|
In this case, the .dat file contains all data, but some of deletion caused incorrect offset.
|
||||||
|
The .idx has all correct offsets.
|
||||||
|
|
||||||
1. fix the .dat file, a new .dat_fixed file will be generated.
|
1. fix the .dat file, a new .dat_fixed file will be generated.
|
||||||
go run fix_dat.go -volumeId=9 -dir=/Users/chrislu/Downloads
|
go run fix_dat.go -volumeId=9 -dir=/Users/chrislu/Downloads
|
||||||
2. move the original .dat and .idx files to some backup folder, and rename .dat_fixed to .dat file
|
2. move the original .dat and .idx files to some backup folder, and rename .dat_fixed to .dat file
|
||||||
|
|
Loading…
Reference in a new issue