mirror of
https://github.com/dolthub/dolt.git
synced 2026-01-07 08:50:34 -06:00
go/performance/benchmarks: OpenForWrite takes os.FilePerm.
This commit is contained in:
@@ -199,7 +199,7 @@ func getBenchmarkingTools(fs filesys.Filesys, rows int, cols []*SeedColumn, work
|
||||
}
|
||||
|
||||
func setupDEnvImport(fs filesys.Filesys, sch *SeedSchema, workingDir, tableName, pathToSchemaFile, pathToImportFile string) *env.DoltEnv {
|
||||
wc, err := fs.OpenForWrite(pathToImportFile)
|
||||
wc, err := fs.OpenForWrite(pathToImportFile, os.ModePerm)
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
||||
@@ -18,6 +18,7 @@ import (
|
||||
"fmt"
|
||||
"io"
|
||||
"log"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"testing"
|
||||
"time"
|
||||
@@ -156,7 +157,7 @@ func serializeResults(results []result, path, tableName, format string) {
|
||||
now := time.Now()
|
||||
fs := filesys.LocalFS
|
||||
resultsFile := filepath.Join(path, fmt.Sprintf("benchmark_results-%04d-%02d-%02d%s", now.Year(), now.Month(), now.Day(), format))
|
||||
wc, err := fs.OpenForWrite(resultsFile)
|
||||
wc, err := fs.OpenForWrite(resultsFile, os.ModePerm)
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user