Skip to content
This repository has been archived by the owner on Mar 22, 2023. It is now read-only.

map_cli example fails gets #186

Closed
kilobyte opened this issue Jan 31, 2019 · 1 comment
Closed

map_cli example fails gets #186

kilobyte opened this issue Jan 31, 2019 · 1 comment

Comments

@kilobyte
Copy link
Contributor

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.

  • PMDK package version(s): 1.5 (exact tag, as packaged in Debian)
  • OS(es) version(s): Debian unstable
  • ndctl version(s): 63-1.3
  • kernel version(s): 4.20.5
  • compiler, libraries, packaging and other related tools version(s): gcc 8.2, etc

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...

igchor added a commit to igchor/libpmemobj-cpp that referenced this issue Feb 1, 2019
argn was not indcremented in case of get(). This resulted
in "invalid key operation" message on every get.

Ref: pmem#186
igchor added a commit to igchor/libpmemobj-cpp that referenced this issue Feb 1, 2019
argn was not incremented in case of get(). This resulted
in "invalid queue operation" message on every get.

Ref: pmem#186
igchor added a commit to igchor/libpmemobj-cpp that referenced this issue Feb 1, 2019
argn was not incremented in case of get(). This resulted
in "invalid queue operation" message on every get.

Ref: pmem#186
igchor added a commit to igchor/libpmemobj-cpp that referenced this issue Feb 4, 2019
argn was not incremented in case of get(). This resulted
in "invalid queue operation" message on every get.

Ref: pmem#186
igchor added a commit to igchor/libpmemobj-cpp that referenced this issue Feb 4, 2019
argn was not incremented in case of get(). This resulted
in "invalid queue operation" message on every get.

Ref: pmem#186
igchor added a commit to igchor/libpmemobj-cpp that referenced this issue Feb 4, 2019
argn was not incremented in case of get(). This resulted
in "invalid queue operation" message on every get.

Also fix "usage" for "insert" operation.

Ref: pmem#186
@kilobyte
Copy link
Contributor Author

kilobyte commented Mar 5, 2019

@kilobyte kilobyte closed this as completed Mar 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant