tdb_expand: limit the expansion with huge records
commit84a264a6f05675302b79eaf3da1edb45697836a6
authorSimo Sorce <idra@samba.org>
Mon, 18 Apr 2011 12:45:11 +0000 (18 22:15 +0930)
committerJeremy Allison <jra@samba.org>
Tue, 19 Apr 2011 17:52:18 +0000 (19 10:52 -0700)
treefa5d2cbcf7af11a40528008c2d63561d09c72a9e
parent51761dbcb07f98168ede2fc54be633d4ecee69a2
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.

(cherry picked from commit cb884186a55c9ef8aca6ee48b16423b3c881e689)
lib/tdb/common/io.c