}
// Get NDB objects.
int connsIndex = 0;
for (int i = 0; i < this.ndbThreadCount; i++) {
Ndb ndb = ndbConns[connsIndex].createNdb(
BackendImpl.DATABASE_NAME, 1024);
connsIndex++;
if (connsIndex >= this.ndbNumConnections) {
connsIndex = 0;
}
try {
this.ndbQueue.put(ndb);
} catch (Exception e) {
if (debugEnabled())
{
TRACER.debugCaught(DebugLogLevel.ERROR, e);
}
if (ndb != null) {
ndb.close();
}
}
}
openAndRegisterEntryContainers(config.getBaseDN());