From 5a29d284fa5a28470e12020d953e15071100620a Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Thu, 13 May 2021 10:18:35 -0700 Subject: [PATCH] ensure proper directory name a fix related to https://github.com/chrislusf/seaweedfs/issues/2064 --- weed/filesys/dirty_pages_temp_file.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/weed/filesys/dirty_pages_temp_file.go b/weed/filesys/dirty_pages_temp_file.go index 58c150acf..274b2a09e 100644 --- a/weed/filesys/dirty_pages_temp_file.go +++ b/weed/filesys/dirty_pages_temp_file.go @@ -6,6 +6,7 @@ import ( "github.com/chrislusf/seaweedfs/weed/pb/filer_pb" "io" "os" + "path/filepath" "sync" "time" ) @@ -24,7 +25,7 @@ type TempFileDirtyPages struct { } var ( - tmpDir = os.TempDir() + "sw" + tmpDir = filepath.Join(os.TempDir(), "sw") ) func init() {