From 00f54da39fc556f2150cb083c02b8314975db9f3 Mon Sep 17 00:00:00 2001 From: Philip O'Toole Date: Fri, 23 Feb 2024 07:40:22 -0500 Subject: [PATCH] Replace another use of CreateTemp --- store/command_processor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/store/command_processor.go b/store/command_processor.go index 0e79f818..31131492 100644 --- a/store/command_processor.go +++ b/store/command_processor.go @@ -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() - fd, err := os.CreateTemp(filepath.Dir(db.Path()), "rqlilte-load-") + fd, err := createTemp(filepath.Dir(db.Path()), "rqlilte-load-") if err != nil { return cmd, false, &fsmGenericResponse{error: fmt.Errorf("failed to create temporary database file: %s", err)} }