From af2918a19365d7a3f10f434040cf689b6327aad6 Mon Sep 17 00:00:00 2001 From: Adam Date: Mon, 11 Dec 2017 17:31:33 -0500 Subject: [PATCH] fix file_store path bug that affects windows users (#9219) --- tsdb/engine/tsm1/file_store.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tsdb/engine/tsm1/file_store.go b/tsdb/engine/tsm1/file_store.go index fae6a3b328..4db738c295 100644 --- a/tsdb/engine/tsm1/file_store.go +++ b/tsdb/engine/tsm1/file_store.go @@ -968,7 +968,8 @@ func (f *FileStore) CreateSnapshot() (string, error) { defer f.mu.RUnlock() // get a tmp directory name - tmpPath := fmt.Sprintf("%s/%d.%s", f.dir, f.currentTempDirID, TmpTSMFileExtension) + tmpPath := fmt.Sprintf("%d.%s", f.currentTempDirID, TmpTSMFileExtension) + tmpPath = filepath.Join(f.dir, tmpPath) err := os.Mkdir(tmpPath, 0777) if err != nil { return "", err