You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 22, 2023. It is now read-only.
It would be useful to add to config option to create pool if not exists, or just open if exists. Let's name it 'soft_create' or 'create_if_not_exists'.
Currently if user is able to create pool due to OS configuration, he cannot just read config from file and apply it . Instead he have to check if file exists and modify config accordingly, like in this python snippet:
if not os.path.exists(config['path']):
config[force_create] = 1
The text was updated successfully, but these errors were encountered:
If you need to have this kind of logic in your app then your code snippet is exactly how it should be handled. We cannot do this in pmemkv because path can be anything - /dev/dax (always exists), path to a file or path to a poolset. To have this feature we would need obj support.
It would be useful to add to config option to create pool if not exists, or just open if exists. Let's name it 'soft_create' or 'create_if_not_exists'.
Currently if user is able to create pool due to OS configuration, he cannot just read config from file and apply it . Instead he have to check if file exists and modify config accordingly, like in this python snippet:
The text was updated successfully, but these errors were encountered: