aboutsummaryrefslogtreecommitdiff
path: root/external/db_drivers/liblmdb64/sample-mdb.txt
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2015-07-16 11:33:10 +0200
committerRiccardo Spagni <ric@spagni.net>2015-07-16 11:33:10 +0200
commite6ab2dfdf3c6bb2a516abb4ddbcafeb1a1791601 (patch)
tree5c8c5e772b322a9be4759890b84e1a46cc7d04e3 /external/db_drivers/liblmdb64/sample-mdb.txt
parentopen() flag O_DSYNC isn't on BSD, use O_SYNC (diff)
downloadmonero-e6ab2dfdf3c6bb2a516abb4ddbcafeb1a1791601.tar.xz
updated in-source lmdb
Diffstat (limited to 'external/db_drivers/liblmdb64/sample-mdb.txt')
-rw-r--r--external/db_drivers/liblmdb64/sample-mdb.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/external/db_drivers/liblmdb64/sample-mdb.txt b/external/db_drivers/liblmdb64/sample-mdb.txt
index d311f8e95..10a256870 100644
--- a/external/db_drivers/liblmdb64/sample-mdb.txt
+++ b/external/db_drivers/liblmdb64/sample-mdb.txt
@@ -32,7 +32,7 @@ int main(int argc,char * argv[])
rc = mdb_env_create(&env);
rc = mdb_env_open(env, "./testdb", 0, 0664);
rc = mdb_txn_begin(env, NULL, 0, &txn);
- rc = mdb_open(txn, NULL, 0, &dbi);
+ rc = mdb_dbi_open(txn, NULL, 0, &dbi);
key.mv_size = sizeof(int);
key.mv_data = sval;
@@ -56,7 +56,7 @@ int main(int argc,char * argv[])
mdb_cursor_close(cursor);
mdb_txn_abort(txn);
leave:
- mdb_close(env, dbi);
+ mdb_dbi_close(env, dbi);
mdb_env_close(env);
return 0;
}