Added an exception to waitForOnline() if the databaseName is OSystem.
@@ -200,6 +200,7 @@ public class ODistributedDatabaseImpl implements ODistributedDatabase {
@Override
public void waitForOnline() {
try {
+ if(!databaseName.equalsIgnoreCase(OSystemDatabase.SYSTEM_DB_NAME))
waitForOnline.await();
} catch (InterruptedException e) {
Thread.currentThread().interrupt();
