tdb_expand: limit the expansion with huge records
authorSimo Sorce <idra@samba.org>
Mon, 18 Apr 2011 12:45:11 +0000 (22:15 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 18 Apr 2011 12:45:11 +0000 (22:15 +0930)
commitcb884186a55c9ef8aca6ee48b16423b3c881e689
tree77b0029d759f3c6de81800ed79699147eeb6f082
parent094ab60053bcc0bc3542af8144e394d83270053e
tdb_expand: limit the expansion with huge records

ldb can create huge records when saving indexes.
Limit the tdb expansion to avoid consuming a lot of memory for
no good reason if the record being saved is huge.
lib/tdb/common/io.c