fix drop in case of distriubed environment with distributed disabled
@@ -182,6 +182,7 @@ public class OrientDBDistributed extends OrientDBEmbedded implements OServerAwar
@Override
public void drop(String name, String user, String password) {
+ if (getPlugin() != null && getPlugin().isEnabled()) {
plugin.executeInDistributedDatabaseLock(
name,
20000,
@@ -191,6 +192,9 @@ public class OrientDBDistributed extends OrientDBEmbedded implements OServerAwar
return null;
});
plugin.dropConfig(name);
+ } else {
+ super.drop(name, user, password);
+ }
}
private boolean checkDbAvailable(String name) {
