|
|
@ -354,7 +354,7 @@ func (v *Volume) copyDataAndGenerateIndexFile(dstName, idxName string, prealloca |
|
|
|
var ( |
|
|
|
dst backend.BackendStorageFile |
|
|
|
) |
|
|
|
if dst, err = createVolumeFile(dstName, preallocate, 0); err != nil { |
|
|
|
if dst, err = CreateVolumeFile(dstName, preallocate, 0); err != nil { |
|
|
|
return |
|
|
|
} |
|
|
|
defer dst.Close() |
|
|
@ -383,7 +383,7 @@ func copyDataBasedOnIndexFile(srcDatName, srcIdxName, dstDatName, datIdxName str |
|
|
|
srcDatBackend, dstDatBackend backend.BackendStorageFile |
|
|
|
dataFile *os.File |
|
|
|
) |
|
|
|
if dstDatBackend, err = createVolumeFile(dstDatName, preallocate, 0); err != nil { |
|
|
|
if dstDatBackend, err = CreateVolumeFile(dstDatName, preallocate, 0); err != nil { |
|
|
|
return |
|
|
|
} |
|
|
|
defer dstDatBackend.Close() |
|
|
|