s3:net conf: reduce memory usage of "net conf import".
commit9889720d204e27cceb2ef9d26a3647e0bc3b480a
authorMichael Adam <obnox@samba.org>
Wed, 4 Mar 2009 20:46:32 +0000 (4 21:46 +0100)
committerKarolin Seeger <kseeger@samba.org>
Fri, 27 Mar 2009 13:15:40 +0000 (27 14:15 +0100)
treee929ec2194453ad4672d1e385bd4edf0e78ebab2
parent8f6377ce55d4f2170d2fe1aaf13437f417f2183f
s3:net conf: reduce memory usage of "net conf import".

"net conf import" was wrapped in one big transaction.
This lead to MAX_TALLOC_SIZE being exceeded at roughly
1500 shares. This patch resolves that problem by
limiting the top level transactions in "net conf import"
to 100 shares.

Michael

Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit 026b72903c852e46012ac60d9d42b14c6860a159)
source/utils/net_conf.c