summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2003-01-24 04:04:49 +0000
committerTim Potter <tpot@samba.org>2003-01-24 04:04:49 +0000
commitbb3bf8d3f47edc62e19050ddc5b2754c339a2ee8 (patch)
tree62d7ed553ac80a2caa1561bf309fc2978a5d5214 /source3/smbd
parent644d31ae25c696e88148632362b8c55646008efc (diff)
downloadsamba-bb3bf8d3f47edc62e19050ddc5b2754c339a2ee8.tar.gz
samba-bb3bf8d3f47edc62e19050ddc5b2754c339a2ee8.tar.bz2
samba-bb3bf8d3f47edc62e19050ddc5b2754c339a2ee8.zip
Merge of increment_smbd_process_count() fix from appliance.
(This used to be commit c39c54e6b6adcdab7647e36e6c1b0acbdeeaf111)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/process.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/process.c b/source3/smbd/process.c
index 2b92b9910f..98ec6ce184 100644
--- a/source3/smbd/process.c
+++ b/source3/smbd/process.c
@@ -807,7 +807,7 @@ static int32 increment_smbd_process_count(void)
if (lp_max_smbd_processes()) {
total_smbds = 0;
- if (tdb_change_int32_atomic(conn_tdb_ctx(), "INFO/total_smbds", &total_smbds, -1) == -1)
+ if (tdb_change_int32_atomic(conn_tdb_ctx(), "INFO/total_smbds", &total_smbds, 1) == -1)
return 1;
process_count_update_successful = True;
return total_smbds + 1;