tdb_expand: limit the expansion with huge records
commitc6977dcf1ed78569022f92a06d659fe6bc26b862
authorSimo Sorce <idra@samba.org>
Mon, 18 Apr 2011 12:45:11 +0000 (18 22:15 +0930)
committerKarolin Seeger <kseeger@samba.org>
Tue, 26 Apr 2011 18:08:43 +0000 (26 20:08 +0200)
tree89ccafa828db5999e403f9d22b5cf703555b3e04
parente8e04158b6990673a8f3534f50d8864069f17f91
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)
(cherry picked from commit 84a264a6f05675302b79eaf3da1edb45697836a6)
lib/tdb/common/io.c