aboutsummaryrefslogtreecommitdiff
path: root/unmaintained/fix_dat
diff options
context:
space:
mode:
authorchrislusf <chris.lu@gmail.com>2015-03-17 14:22:56 -0700
committerchrislusf <chris.lu@gmail.com>2015-03-17 14:22:56 -0700
commit6fc72b19bb3a9d4491db141dd556949582745e41 (patch)
tree8efc9b48331901ead64bbf7fd0d586a66e82f4b8 /unmaintained/fix_dat
parent981c981fa8862c34f0a56ec2823f66a029c17826 (diff)
downloadseaweedfs-6fc72b19bb3a9d4491db141dd556949582745e41.tar.xz
seaweedfs-6fc72b19bb3a9d4491db141dd556949582745e41.zip
add more comments
Diffstat (limited to 'unmaintained/fix_dat')
-rw-r--r--unmaintained/fix_dat/fix_dat.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/unmaintained/fix_dat/fix_dat.go b/unmaintained/fix_dat/fix_dat.go
index 486da4a78..85ab15f6a 100644
--- a/unmaintained/fix_dat/fix_dat.go
+++ b/unmaintained/fix_dat/fix_dat.go
@@ -21,6 +21,9 @@ var (
/*
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.
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