|
|
|
@ -47,7 +47,7 @@ int main(int argc,char * argv[]) |
|
|
|
|
rc = mdbenv_stat(env, &mst); |
|
|
|
|
|
|
|
|
|
rc = mdb_cursor_open(db, NULL, &cursor); |
|
|
|
|
while (rc = mdb_cursor_get(cursor, &key, &data, MDB_NEXT) == 0) { |
|
|
|
|
while ((rc = mdb_cursor_get(cursor, &key, &data, MDB_NEXT)) == 0) { |
|
|
|
|
printf("key: %p %.*s, data: %p %.*s\n", |
|
|
|
|
key.mv_data, (int) key.mv_size, (char *) key.mv_data, |
|
|
|
|
data.mv_data, (int) data.mv_size, (char *) data.mv_data); |
|
|
|
@ -74,7 +74,7 @@ int main(int argc,char * argv[]) |
|
|
|
|
|
|
|
|
|
rc = mdbenv_stat(env, &mst); |
|
|
|
|
rc = mdb_cursor_open(db, NULL, &cursor); |
|
|
|
|
while (rc = mdb_cursor_get(cursor, &key, &data, MDB_NEXT) == 0) { |
|
|
|
|
while ((rc = mdb_cursor_get(cursor, &key, &data, MDB_NEXT)) == 0) { |
|
|
|
|
printf("key: %.*s, data: %.*s\n", |
|
|
|
|
(int) key.mv_size, (char *) key.mv_data, |
|
|
|
|
(int) data.mv_size, (char *) data.mv_data); |
|
|
|
|