Subject: | calling ->del($key) fails with invalid usage. |
Attached is an example bit of code that demonstrates this error.
Subject: | lmdb.pl |
#!/usr/bin/env perl
# FILENAME: lmdb.pl
# CREATED: 09/07/14 15:02:41 by Kent Fredric (kentnl) <kentfredric@gmail.com>
# ABSTRACT: Make sure I get this.
use strict;
use warnings;
use utf8;
use LMDB_File qw( :dbflags );
mkdir '/tmp/some_path';
my $env = LMDB::Env->new('/tmp/some_path');
my $txn = $env->BeginTxn;
$txn->AutoCommit(1);
my $db = $txn->OpenDB(
{
dbname => "Example",
flags => MDB_CREATE,
}
);
$db->put("test1", "Hello");
print $db->get("test1");
$db->del("test1"); # Bang
__END__
Usage: LMDB_File::_del(txn, dbi, key, data) at /home/kent/perl5/perlbrew/perls/blead/lib/site_perl/5.21.3/x86_64-linux/LMDB_File.pm line 347.