This will be set for old TDBs; we can start distinguishing paths based
on it now.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(Imported from CCAN commit
2b50be90a23893a06e0f1436a31d18b97ad0e11d)
tdb->fd = -1;
tdb->name = NULL;
tdb->map_ptr = NULL;
- tdb->flags = tdb1_flags;
+ tdb->flags = tdb1_flags|TDB_VERSION1;
tdb->open_flags = open_flags;
if (log_ctx) {
tdb->log_fn = log_ctx->log_fn;
#define TDB_SEQNUM 128 /* maintain a sequence number */
#define TDB_ALLOW_NESTING 256 /* fake nested transactions */
#define TDB_RDONLY 512 /* implied by O_RDONLY */
+#define TDB_VERSION1 1024 /* create/open an old style TDB */
/**
* tdb_close - close and free a tdb.