this.clusterImpl = clusterImpl;
- if (!clusterImpl.isLoaded())
- new IllegalStateException("Change to proxy cluster " + clusterImpl.getClusterUID()).printStackTrace();
-
clusterUID = clusterImpl.getClusterUID();
long[] longs = new long[ClusterUID.getLongLength()];
clusterUID.toLong(longs, 0);
}
if (0 != foreign) {
if (foreign > 256)
- throw new RuntimeDatabaseException("Internal error, contact application support." +
- "Too big foreing index=" + foreign + " max=256");
+ throw new RuntimeDatabaseException("Internal error." +
+ "Too big foreign index=" + foreign + " max=256");
--foreign;
bytes[byteIndex++] = foreign;
return ClusterEnum.ForeignShort;
if (DEBUG_STAT)
info.sForeign = foreignTable.size();
if (clusterUID.equals(ClusterUID.Null))
- throw new RuntimeDatabaseException("Internal error, contact application support." +
- "Cluster unique id not defined for foreing cluster.");
+ throw new RuntimeDatabaseException("Internal error." +
+ "Cluster unique id not defined for foreign cluster.");
addForeignLong(resourceIndex, clusterUID);
return ClusterEnum.ForeignLong;
}
left -= written;
checkBufferSpace(12);
}
+ // Possibly truncate file
+ modiValue(ri, length_, new byte[0], 0, 0);
return sum;
}