ntdb: allow direct access for NTDB_INTERNAL dbs during expansion.
authorRusty Russell <rusty@rustcorp.com.au>
Fri, 22 Jun 2012 00:14:40 +0000 (09:44 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Fri, 22 Jun 2012 05:35:17 +0000 (07:35 +0200)
commitbd5c061932d9aaf2e66cd56a39743c9ff34c3a88
tree6bc78039fa38af2af1134f658548c4e4ec722fb7
parent0a34f342c3facace0767ff08f05532c9f161e305
ntdb: allow direct access for NTDB_INTERNAL dbs during expansion.

NTDB_INTERNAL databases need to malloc and copy to keep old versions
around if we expand, in a similar way to the manner in which keep old
mmaps around.

Of course, it only works for read-only accesses, since the two copies
are not synced.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
lib/ntdb/io.c