pmem / issues

Old issues repo for PMDK.
http://pmem.io
13 stars 7 forks source link

cpp: map_cli example fails gets #1006

Closed kilobyte closed 5 years ago

kilobyte commented 5 years ago

On -cpp 1.5 (exact tag without further commits, but reproduces with unreleased stable-1.5 and with master), the map_cli example fails on every "get" operation.

Test commands that I'd expected to work:

m() { ./map_cli file persistent "$@"; }

m insert 1 1
m get 1
m insert 1 2
m get 1
m insert 2 10
m print
m remove 1
m get 1
m insert 1 3
m print

which should give:

1
2
map[1] = 2
map[2] = 10
2
key not found
map[1] = 3
map[2] = 10

Result: every "get" says, in addition to expected output, 「invalid queue operation」 on stderr.

I strongly suspect that this is a bug in the example rather than the library, but it's you who know better...

marcinslusarz commented 5 years ago

libpmemobj-cpp issues are tracked in libpmemobj-cpp repo

kilobyte commented 5 years ago

M'kay, filed there.