mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
add a template for makeupDiff
This commit is contained in:
parent
8fa61c28e4
commit
7e29218327
|
@ -38,6 +38,7 @@ func (v *Volume) commitCompact() error {
|
|||
glog.V(3).Infof("Got Committing lock...")
|
||||
v.nm.Close()
|
||||
_ = v.dataFile.Close()
|
||||
makeupDiff(v.FileName()+".cpd", v.FileName()+".cpx", v.FileName()+".dat", v.FileName()+".idx")
|
||||
var e error
|
||||
if e = os.Rename(v.FileName()+".cpd", v.FileName()+".dat"); e != nil {
|
||||
return e
|
||||
|
@ -54,6 +55,9 @@ func (v *Volume) commitCompact() error {
|
|||
return nil
|
||||
}
|
||||
|
||||
func makeupDiff(newDatFile, newIdxFile, oldDatFile, oldIdxFile string) (err error) {
|
||||
}
|
||||
|
||||
func (v *Volume) copyDataAndGenerateIndexFile(dstName, idxName string) (err error) {
|
||||
var (
|
||||
dst, idx *os.File
|
||||
|
|
Loading…
Reference in a new issue