fix file_store path bug that affects windows users (#9219)

pull/9211/merge
Adam 2017-12-11 17:31:33 -05:00 committed by GitHub
parent 0be32d5fd9
commit af2918a193
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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