Fix CREATE INDEX in distributed
(avoid to use remote index manager)
@@ -76,8 +76,7 @@ public class OIndexManagerProxy extends OProxedResource<OIndexManagerAbstract> i
final int[] clusterIdsToIndex, final OProgressListener progressListener, final ODocument metadata) {
if (isDistributedCommand()) {
- final OIndexManagerRemote remoteIndexManager = new OIndexManagerRemote(database.getStorage());
- return remoteIndexManager.createIndex(iName, iType, indexDefinition, clusterIdsToIndex, progressListener, metadata);
+ return distributedCreateIndex(iName, iType, indexDefinition, clusterIdsToIndex, progressListener, metadata, null);
}
return delegate.createIndex(iName, iType, indexDefinition, clusterIdsToIndex, progressListener, metadata);
