1
0
Fork 0

Replace another use of CreateTemp

master
Philip O'Toole 7 months ago
parent 1137c70508
commit 00f54da39f

@ -77,7 +77,7 @@ func (c *CommandProcessor) Process(data []byte, db *sql.SwappableDB) (*proto.Com
} }
// create a scratch file in the same directory as s.db.Path() // create a scratch file in the same directory as s.db.Path()
fd, err := os.CreateTemp(filepath.Dir(db.Path()), "rqlilte-load-") fd, err := createTemp(filepath.Dir(db.Path()), "rqlilte-load-")
if err != nil { if err != nil {
return cmd, false, &fsmGenericResponse{error: fmt.Errorf("failed to create temporary database file: %s", err)} return cmd, false, &fsmGenericResponse{error: fmt.Errorf("failed to create temporary database file: %s", err)}
} }

Loading…
Cancel
Save