X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftdb2%2Fopen.c;h=3c6abe726e6e58f2404800922055ff4a690fe68d;hp=dad353480fffe872cc82a90f0a773e566e604aba;hb=9691464a16ef22d6acadfef209666381dfe22b2f;hpb=afa6d57b7d93fe4675a952f556eb462951baa257 diff --git a/ccan/tdb2/open.c b/ccan/tdb2/open.c index dad35348..3c6abe72 100644 --- a/ccan/tdb2/open.c +++ b/ccan/tdb2/open.c @@ -647,12 +647,9 @@ struct tdb_context *tdb_open(const char *name, int tdb_flags, goto fail; } + /* This is a version2 tdb. */ if (tdb->flags & TDB_VERSION1) { - ecode = tdb_logerr(tdb, TDB_ERR_IO, TDB_LOG_ERROR, - "tdb_open:" - " %s does not need TDB_VERSION1", - name); - goto fail; + tdb->flags &= ~TDB_VERSION1; } tdb2_context_init(tdb);