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() {