Commit 26433e87 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Clustering now works when using HSQLDB as an external DB.

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@9355 b35dd754-fafc-0310-a699-88a17e54d16e
parent 1344ffb7
......@@ -793,6 +793,10 @@ public class DbConnectionManager {
return batchUpdatesSupported;
}
public static boolean isEmbeddedDB() {
return connectionProvider != null && connectionProvider instanceof EmbeddedConnectionProvider;
}
/**
* A class that identifies the type of the database that Jive is connected
* to. In most cases, we don't want to make any database specific calls
......
......@@ -63,7 +63,7 @@
}
}
boolean usingEmbeddedDB = DbConnectionManager.getDatabaseType() == DbConnectionManager.DatabaseType.hsqldb;
boolean usingEmbeddedDB = DbConnectionManager.isEmbeddedDB();
boolean clusteringAvailable = !usingEmbeddedDB && ClusterManager.isClusteringAvailable();
boolean clusteringStarting = ClusterManager.isClusteringStarting();
int maxClusterNodes = ClusterManager.getMaxClusterNodes();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment