mongo3 dont't have --directoryperdb option;

Just append dumpPath by the end of the command is capable for both mongo2 and 3
This commit is contained in:
goodbest
2015-04-02 10:43:46 +08:00
parent a089292461
commit 68eaac9622

View File

@ -372,7 +372,7 @@ func (this *ConfigService) Restore(createdTime string) (ok bool, msg string) {
return false, path + " Is Not Exists"
}
binPath += " --directoryperdb " + path
binPath += " " + path
cmd := exec.Command("/bin/sh", "-c", binPath)
Log(binPath);