re-enabled hosts avaibility update on push request also when fetch hosts is off
@@ -1237,11 +1237,20 @@ public class OStorageRemote extends OStorageAbstract implements OStorageProxy, O
@SuppressWarnings("unchecked")
public void updateDistributedNodes(List<String> hosts) {
+ // TEMPORARY FIX: DISTRIBUTED MODE DOESN'T SUPPORT TREE BONSAI, KEEP ALWAYS EMBEDDED RIDS
+ OGlobalConfiguration.RID_BAG_EMBEDDED_TO_SBTREEBONSAI_THRESHOLD.setValue(Integer.MAX_VALUE);
+
if (!clientConfiguration.getValueAsBoolean(CLIENT_CONNECTION_FETCH_HOST_LIST)) {
+ List<String> definedHosts = parseAddressesFromUrl(url);
+ synchronized (serverURLs) {
+ for (String host : hosts) {
+ if (definedHosts.contains(host)) {
+ addHost(host);
+ }
+ }
+ }
return;
}
- // TEMPORARY FIX: DISTRIBUTED MODE DOESN'T SUPPORT TREE BONSAI, KEEP ALWAYS EMBEDDED RIDS
- OGlobalConfiguration.RID_BAG_EMBEDDED_TO_SBTREEBONSAI_THRESHOLD.setValue(Integer.MAX_VALUE);
// UPDATE IT
synchronized (serverURLs) {
for (String host : hosts) {
