summaryrefslogtreecommitdiffstats
path: root/source/smbd/service.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-01-14 19:34:28 +0000
committerJeremy Allison <jra@samba.org>2002-01-14 19:34:28 +0000
commit5b2b9c25af28543e67762805d1387524cbb6c39d (patch)
tree66c25f98805728f9ea40df85a3f32889bcf7717a /source/smbd/service.c
parent682e7cd394c1e1cc9a83f7e8e5e3694e083946c4 (diff)
downloadsamba-5b2b9c25af28543e67762805d1387524cbb6c39d.tar.gz
samba-5b2b9c25af28543e67762805d1387524cbb6c39d.tar.xz
samba-5b2b9c25af28543e67762805d1387524cbb6c39d.zip
Removed MAXSTATUS which was set incorrectly - thus causing tdb traversal
of the connections db on smbd startup. This should fix the Solaris large load bug.... (fingers crossed). Jeremy.
Diffstat (limited to 'source/smbd/service.c')
-rw-r--r--source/smbd/service.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/source/smbd/service.c b/source/smbd/service.c
index 8218ca2dc51..120868f24a4 100644
--- a/source/smbd/service.c
+++ b/source/smbd/service.c
@@ -588,9 +588,7 @@ connection_struct *make_connection(char *service, DATA_BLOB password,
ret = smbrun(cmd,NULL);
if (ret != 0 && lp_rootpreexec_close(SNUM(conn))) {
DEBUG(1,("root preexec gave %d - failing connection\n", ret));
- yield_connection(conn,
- lp_servicename(SNUM(conn)),
- lp_max_connections(SNUM(conn)));
+ yield_connection(conn, lp_servicename(SNUM(conn)));
conn_free(conn);
*status = NT_STATUS_UNSUCCESSFUL;
return NULL;
@@ -619,7 +617,7 @@ connection_struct *make_connection(char *service, DATA_BLOB password,
if (ret != 0 && lp_preexec_close(SNUM(conn))) {
DEBUG(1,("preexec gave %d - failing connection\n", ret));
change_to_root_user();
- yield_connection(conn, lp_servicename(SNUM(conn)), lp_max_connections(SNUM(conn)));
+ yield_connection(conn, lp_servicename(SNUM(conn)));
conn_free(conn);
*status = NT_STATUS_UNSUCCESSFUL;
return NULL;
@@ -631,9 +629,7 @@ connection_struct *make_connection(char *service, DATA_BLOB password,
remote_machine, conn->client_address,
conn->connectpath,strerror(errno)));
change_to_root_user();
- yield_connection(conn,
- lp_servicename(SNUM(conn)),
- lp_max_connections(SNUM(conn)));
+ yield_connection(conn, lp_servicename(SNUM(conn)));
conn_free(conn);
*status = NT_STATUS_BAD_NETWORK_NAME;
return NULL;
@@ -713,9 +709,7 @@ void close_cnum(connection_struct *conn, uint16 vuid)
}
- yield_connection(conn,
- lp_servicename(SNUM(conn)),
- lp_max_connections(SNUM(conn)));
+ yield_connection(conn, lp_servicename(SNUM(conn)));
file_close_conn(conn);
dptr_closecnum(conn);