| | |
| | | import org.opends.server.backends.pluggable.spi.StorageRuntimeException; |
| | | import org.opends.server.backends.pluggable.spi.WriteOperation; |
| | | import org.opends.server.backends.pluggable.spi.WriteableStorage; |
| | | import org.opends.server.core.DefaultCompressedSchema; |
| | | import org.opends.server.core.DirectoryServer; |
| | | import org.opends.server.types.ConfigChangeResult; |
| | | import org.opends.server.types.DN; |
| | |
| | | /** The cached value of the next entry identifier to be assigned. */ |
| | | private AtomicLong nextid = new AtomicLong(1); |
| | | |
| | | // FIXME JNR Switch back to a database persisted implementation of CompressedSchema |
| | | /** The compressed schema manager for this backend. */ |
| | | private CompressedSchema compressedSchema; |
| | | private JECompressedSchema compressedSchema; |
| | | |
| | | private File backendDirectory; |
| | | |
| | |
| | | } |
| | | } |
| | | |
| | | compressedSchema = new DefaultCompressedSchema(); |
| | | try |
| | | { |
| | | storage = new PersistItStorage(); |
| | |
| | | @Override |
| | | public void run(WriteableStorage txn) throws Exception |
| | | { |
| | | compressedSchema = new JECompressedSchema(storage, txn); |
| | | openAndRegisterEntryContainers(txn, config.getBaseDN()); |
| | | } |
| | | }); |
| | |
| | | } |
| | | } |
| | | |
| | | // FIXME JNR call close() for a DB stored compressed schema |
| | | // compressedSchema.close(); |
| | | compressedSchema.close(); |
| | | config.removePersistitChangeListener(this); |
| | | |
| | | if (storage != null) |