Issue 60: weed export -collection doesn't work

This commit is contained in:
Chris Lu 2014-01-21 20:51:07 -08:00
parent 1bf75f7f73
commit bd6e1a8a70

View file

@ -82,6 +82,9 @@ func runExport(cmd *Command, args []string) bool {
}
fileName := strconv.Itoa(*exportVolumeId)
if *exportCollection!=""{
fileName = *exportCollection + "_" + fileName
}
vid := storage.VolumeId(*exportVolumeId)
indexFile, err := os.OpenFile(path.Join(*exportVolumePath, fileName+".idx"), os.O_RDONLY, 0644)
if err != nil {