I'm initialising my MicroStream-Datastore with the following code:
public static final EmbeddedStorageFoundation<?> createStorageFoundation(
final File directory
)
{
final EmbeddedStorageFoundation<?> foundation = EmbeddedStorage.Foundation();
foundation.onConnectionFoundation(
f ->
{
f
.setTypeDictionaryIoHandler( dictionaryStorage(, directory))
}
);
return foundation;
}
static final PersistenceTypeDictionaryFileHandler dictionaryStorage(final File directory)
{
final File dictFile = new File(directory, "MyTypeDict.ptd");
final NioFileSystem fileSystem = NioFileSystem.New();
return dispatch(PersistenceTypeDictionaryFileHandler.New(fileSystem.ensureFile(dictFile.toPath())));
}
Perfect! It works. Then i create a Backup like this:
public void createBackup(EmbeddedStorageManager storageManager)
{
storageManager.issueFullBackup(backupFileSystem.ensureDirectoryPath("."));
}
Now the backup works as well, with one exception: The created PersistenceTypeDictionary is named 'PersistenceTypeDictionary.ptd' instead of the configured 'MyTypeDict.ptd'.
That means if i want to use the backup, i have to rename the file.
The MicroStream support already offered me a solution:
I'm initialising my MicroStream-Datastore with the following code:
Perfect! It works. Then i create a Backup like this:
Now the backup works as well, with one exception: The created PersistenceTypeDictionary is named 'PersistenceTypeDictionary.ptd' instead of the configured 'MyTypeDict.ptd'. That means if i want to use the backup, i have to rename the file.
The MicroStream support already offered me a solution:
My feature request is simple enough: Make it work without the offered solution.