} else
dataSegments[pos].open();
}
// REGISTER CLUSTER
OStorageClusterConfiguration clusterConfig;
for (int i = 0; i < configuration.clusters.size(); ++i) {
clusterConfig = configuration.clusters.get(i);
if (clusterConfig != null) {
pos = createClusterFromConfig(clusterConfig);
if (pos == -1) {
// CLOSE AND REOPEN TO BE SURE ALL THE FILE SEGMENTS ARE
// OPENED
clusters[i].close();
clusters[i] = new OClusterLocal(this, (OStoragePhysicalClusterConfiguration) clusterConfig);
clusterMap.put(clusters[i].getName(), clusters[i]);
clusters[i].open();
} else {
if (clusterConfig.getName().equals(OStorage.CLUSTER_DEFAULT_NAME))
defaultClusterId = pos;
clusters[pos].open();
}
}