summaryrefslogtreecommitdiff
path: root/source3/services
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2005-06-16 00:46:43 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:57:17 -0500
commitb162a396fecb08cc02addf17aed30fbc5e813f5b (patch)
tree74cc8bf0b2fc1b6c14ecaf24b8d07bb2015477e2 /source3/services
parente9e00ee9c2e6dad86d57a858e71caf2066070c8f (diff)
downloadsamba-b162a396fecb08cc02addf17aed30fbc5e813f5b.tar.gz
samba-b162a396fecb08cc02addf17aed30fbc5e813f5b.tar.bz2
samba-b162a396fecb08cc02addf17aed30fbc5e813f5b.zip
r7624: * removed unmatched tdb_lock_by_string() call (should fix build farm issues)
* comment out services.tdb code until I finish rewriting it (This used to be commit 707b7822286a6c7e9d1e4ca3d15b99c976f6e704)
Diffstat (limited to 'source3/services')
-rw-r--r--source3/services/services_db.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/source3/services/services_db.c b/source3/services/services_db.c
index df74387959..29c5a9f6e6 100644
--- a/source3/services/services_db.c
+++ b/source3/services/services_db.c
@@ -21,6 +21,8 @@
#include "includes.h"
+#if 0
+
/* backend database routines for services.tdb */
#define SERVICEDB_VERSION_V1 1 /* Will there be more? */
@@ -90,7 +92,6 @@ int num_external_services(void)
num_services = 0;
} else {
pstrcpy(keystring,"EXTERNAL_SERVICES");
- tdb_lock_bystring(service_tdb, keystring, 0);
key_data = tdb_fetch_bystring(service_tdb, keystring);
if ((key_data.dptr != NULL) && (key_data.dsize != 0)) {
@@ -98,7 +99,6 @@ int num_external_services(void)
external_services_string[key_data.dsize] = 0;
DEBUG(8,("enum_external_services: services list is %s, size is %d\n",external_services_string,key_data.dsize));
}
- tdb_unlock_bystring(service_tdb, keystring);
}
svc_list = str_list_make(external_services_string,NULL);
@@ -147,14 +147,12 @@ WERROR enum_external_services(TALLOC_CTX *tcx,ENUM_SERVICES_STATUS **svc_ptr, in
DEBUG(8,("enum_external_services: service database is not open!!!\n"));
} else {
pstrcpy(keystring,"EXTERNAL_SERVICES");
- tdb_lock_bystring(service_tdb, keystring, 0);
key_data = tdb_fetch_bystring(service_tdb, keystring);
if ((key_data.dptr != NULL) && (key_data.dsize != 0)) {
strncpy(external_services_string,key_data.dptr,key_data.dsize);
external_services_string[key_data.dsize] = 0;
DEBUG(8,("enum_external_services: services list is %s, size is %d\n",external_services_string,key_data.dsize));
}
- tdb_unlock_bystring(service_tdb, keystring);
}
svc_list = str_list_make(external_services_string,NULL);
@@ -275,7 +273,6 @@ int num_internal_services(void)
num_services = 0;
} else {
pstrcpy(keystring,"INTERNAL_SERVICES");
- tdb_lock_bystring(service_tdb, keystring, 0);
key_data = tdb_fetch_bystring(service_tdb, keystring);
if ((key_data.dptr != NULL) && (key_data.dsize != 0)) {
@@ -283,7 +280,6 @@ int num_internal_services(void)
internal_services_string[key_data.dsize] = 0;
DEBUG(8,("enum_internal_services: services list is %s, size is %d\n",internal_services_string,key_data.dsize));
}
- tdb_unlock_bystring(service_tdb, keystring);
}
svc_list = str_list_make(internal_services_string,NULL);
@@ -473,7 +469,6 @@ BOOL store_service_info(TDB_CONTEXT *stdb,char *service_name, Service_info *si)
tdb_store_bystring(stdb,keystring,string_tdb_data(si->description),TDB_REPLACE);
pstr_sprintf(keystring,"SERVICE/%s/SHORTDESC", service_name);
- tdb_lock_bystring(stdb, keystring, 0);
if (si->shortdescription && *si->shortdescription)
tdb_store_bystring(stdb,keystring,string_tdb_data(si->shortdescription),TDB_REPLACE);
else
@@ -539,10 +534,8 @@ BOOL init_svcctl_db(void)
svcname++;
}
pstrcpy(keystring,"EXTERNAL_SERVICES");
- tdb_lock_bystring(service_tdb, keystring, 0);
DEBUG(8,("Storing external service list [%s]\n",external_service_list));
tdb_store_bystring(service_tdb,keystring,string_tdb_data(external_service_list),TDB_REPLACE);
- tdb_unlock_bystring(service_tdb,keystring);
/* Get the INTERNAL services */
@@ -563,11 +556,9 @@ BOOL init_svcctl_db(void)
isd_ptr++;
}
pstrcpy(keystring,"INTERNAL_SERVICES");
- tdb_lock_bystring(service_tdb, keystring, 0);
DEBUG(8,("Storing internal service list [%s]\n",internal_service_list));
tdb_store_bystring(service_tdb,keystring,string_tdb_data(internal_service_list),TDB_REPLACE);
- tdb_unlock_bystring(service_tdb,keystring);
return True;
}
-
+#endif