only delete the cluster config if the config dir is random

pull/838/head
Rui Gu 8 years ago
parent e29636e17a
commit 06be4bad10

@ -855,7 +855,7 @@ public class RedisRunner {
public boolean deleteClusterFile() {
File f = new File(clusterFile);
if (f.exists()) {
if (f.exists() && isRandomDir()) {
System.out.println("REDIS RUNNER: Deleting cluster config file " + f.getAbsolutePath());
return f.delete();
}

Loading…
Cancel
Save