Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete operation requires $data, even when MDB_DUPSORT is not used #19

Open
akotlar opened this issue Aug 28, 2016 · 2 comments
Open

Delete operation requires $data, even when MDB_DUPSORT is not used #19

akotlar opened this issue Aug 28, 2016 · 2 comments

Comments

@akotlar
Copy link
Contributor

akotlar commented Aug 28, 2016

Usage: LMDB_File::_del(txn, dbi, key, data)

Usage scenario

# Results in: Usage: LMDB_File::_del(txn, dbi, key, data)
$txn->del($db->{dbi}, $pos);

# Same behavior
LMDB_File::_del($txn, $db->{dbi}, $pos);

Expected behavior:

If the database does not support sorted duplicate data items, (MDB_DUPSORT) the $data parameter is optional and is ignored.
@hoytech
Copy link
Contributor

hoytech commented Aug 29, 2016

Yup, looks like a bug. As you can probably tell, the DB interface seems to get a lot more use than the low-level txn one :)

@akotlar
Copy link
Contributor Author

akotlar commented Aug 29, 2016

Yeah :) No worries, that makes sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants