Files
bind9/bin/tools
Michał Kępień 7545b00842 [rt46718] Use both MDB_FIRST and MDB_NEXT when iterating over an LMDB database
"while(mdb_cursor_get(..., MDB_NEXT))" works because LMDB handles this
internally in the right way, but the docs [1] state:

    For example, to list all key/value pairs in a database, use
    operation MDB_FIRST for the first call to mdb_cursor_get(), and
    MDB_NEXT on subsequent calls, until the end is hit.

It does not hurt to follow the docs to the letter, plus the revised
syntax arguably conveys the intent a bit more clearly.

[1] http://www.lmdb.tech/doc/starting.html#Cursors
2017-11-28 14:51:05 +01:00
..
2017-10-27 09:56:11 -07:00
2017-10-27 09:56:11 -07:00
2017-04-24 01:06:39 +00:00
2017-04-24 01:06:39 +00:00
2017-10-27 09:56:11 -07:00
2017-08-30 01:12:14 +00:00
2017-09-16 13:53:29 +02:00
2017-08-30 01:12:14 +00:00
2017-03-02 01:05:06 +00:00
2017-03-02 01:05:06 +00:00
2017-06-14 01:08:21 +00:00
2017-06-17 16:13:27 +10:00
2017-06-14 01:08:21 +00:00