pmemstore
pmemstore copied to clipboard
pmemkv_put is not thread-safe
ISSUE: pmemkv_put is not thread-safe
Environment Information
| Name | Version |
|---|---|
| pmemkv version(s) | 295fabe305fec38fed68cc229f7675c3a9c41a4b |
| libpmemobj-cpp version(s) | 1.13.0 |
| PMDK (libpmem/libpmemobj) version(s) | 1.11.1 |
| OS(es) version(s) | ubuntu 22.04 |
| kernel version(s) | 5.10.102 |
| compiler, libraries, packaging and other related tools version(s) | gcc, g++ |
Please provide a reproduction of the bug:
Here is an output of the attached program. This program puts entries of the same key simultaneously.
key = key, value = value2
key = key, value = value1
There are two entries of the same key in the database.
This attachment has .txt suffix because .c file cannot be attached. Rename it to bug.c