mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-10-21 10:37:24 +08:00
refactoring
This commit is contained in:
@@ -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 = backend.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 = backend.CreateVolumeFile(dstDatName, preallocate, 0); err != nil {
|
||||
return
|
||||
}
|
||||
defer dstDatBackend.Close()
|
||||
|
Reference in New Issue
Block a user