mirror of
https://github.com/samba-team/samba.git
synced 2025-01-29 21:47:30 +03:00
Merge of increment_smbd_process_count() fix from appliance.
(This used to be commit c39c54e6b6adcdab7647e36e6c1b0acbdeeaf111)
This commit is contained in:
parent
644d31ae25
commit
bb3bf8d3f4
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user