diff options
author | Michael Adam <obnox@samba.org> | 2015-07-21 15:18:01 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2015-07-31 01:55:30 +0200 |
commit | 44619ad2611bd02419c4a81b5434ad587b2cb8a7 (patch) | |
tree | 63b571afcdf9b385f8da99b668f0bde7aca7404b /source3/param | |
parent | ea6d35ccdddaa692f66ac2cebd7a66110cd66c98 (diff) | |
download | samba-44619ad2611bd02419c4a81b5434ad587b2cb8a7.tar.gz |
param: turn 'smb2 max credits' into generated option
This is achieved by moving the special treatment from
the lp_smb2_max_credits() function in the the special
handler that is called only once upon lp_load().
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/param')
-rw-r--r-- | source3/param/loadparm.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index 7d63d58eeb0..296d426ab06 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -858,7 +858,7 @@ static void init_globals(struct loadparm_context *lp_ctx, bool reinit_globals) Globals.smb2_max_read = DEFAULT_SMB2_MAX_READ; Globals.smb2_max_write = DEFAULT_SMB2_MAX_WRITE; Globals.smb2_max_trans = DEFAULT_SMB2_MAX_TRANSACT; - Globals.ismb2_max_credits = DEFAULT_SMB2_MAX_CREDITS; + Globals.smb2_max_credits = DEFAULT_SMB2_MAX_CREDITS; Globals.smb2_leases = false; string_set(Globals.ctx, &Globals.ncalrpc_dir, get_dyn_NCALRPCDIR()); @@ -1033,13 +1033,6 @@ int lp_winbind_max_domain_connections(void) return MAX(1, lp_winbind_max_domain_connections_int()); } -int lp_smb2_max_credits(void) -{ - if (Globals.ismb2_max_credits <= 0) { - Globals.ismb2_max_credits = DEFAULT_SMB2_MAX_CREDITS; - } - return Globals.ismb2_max_credits; -} int lp_cups_encrypt(void) { int result = 0; |