Skip to content

Commit

Permalink
feat(auto-balance): replace io.Copy with sparse.SyncLocalFile
Browse files Browse the repository at this point in the history
longhorn/longhorn-4105

Signed-off-by: Chin-Ya Huang <chin-ya.huang@suse.com>
  • Loading branch information
c3y1huang committed Jul 4, 2024
1 parent bca16fe commit 828da65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/sync/rpc/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ func (s *SyncAgentServer) fileSyncLocal(ctx context.Context, req *enginerpc.File

log.Tracef("Copying file %v to %v", sourcePath, targetPath)

err = lhio.CopyFile(sourcePath, targetPath, true)
err = sparse.SyncLocalFile(sourcePath, targetPath)
if err != nil {
return err
}
Expand Down

0 comments on commit 828da65

Please sign in to comment.