X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftdb2%2Ffree.c;h=03ca5a4f9471c17920bb9b1d44b7953e2f560eea;hp=1b2c552a66fecea4a5e3190a4b4d3e1f5fe51cc3;hb=6f7cb26e589cea081e71c59801eae87178967861;hpb=a3606bbd6ac38deb365b1c6c7f738ef19bd3df1c;ds=sidebyside diff --git a/ccan/tdb2/free.c b/ccan/tdb2/free.c index 1b2c552a..03ca5a4f 100644 --- a/ccan/tdb2/free.c +++ b/ccan/tdb2/free.c @@ -898,7 +898,7 @@ static enum TDB_ERROR tdb_expand(struct tdb_context *tdb, tdb_len_t size) /* Someone else may have expanded the file, so retry. */ old_size = tdb->file->map_size; - tdb->tdb2.io->oob(tdb, tdb->file->map_size + 1, true); + tdb->tdb2.io->oob(tdb, tdb->file->map_size, 1, true); if (tdb->file->map_size != old_size) { tdb_unlock_expand(tdb, F_WRLCK); return TDB_SUCCESS;