This commit is contained in:
Chris Lu
2019-06-04 22:04:10 -07:00
parent 2215e81be7
commit ca8a2bb534
5 changed files with 7 additions and 7 deletions

View File

@@ -64,7 +64,7 @@ func EcShardFileName(collection string, dir string, id int) (fileName string) {
func EcShardBaseFileName(collection string, id int) (baseFileName string) {
baseFileName = strconv.Itoa(id)
if collection != "" {
baseFileName = collection+"_"+baseFileName
baseFileName = collection + "_" + baseFileName
}
return
}