use dbwrap_rbt in loadparm.c
authorVolker Lendecke <vl@sernet.de>
Sat, 24 Nov 2007 20:42:46 +0000 (21:42 +0100)
committerVolker Lendecke <vl@samba.org>
Mon, 10 Dec 2007 15:06:32 +0000 (16:06 +0100)
source/param/loadparm.c

index cb19fda741a9e2b38d8213da655731e1ef53fc6a..608acb12e71356b04b05da7326d5ccb82457ce20 100644 (file)
@@ -2641,10 +2641,8 @@ static bool hash_a_service(const char *name, int idx)
        char *canon_name;
 
        if ( !ServiceHash ) {
-               DEBUG(10,("hash_a_service: creating tdb servicehash\n"));
-               ServiceHash = db_open_tdb(NULL, "servicehash", 1031,
-                                         TDB_INTERNAL, (O_RDWR|O_CREAT),
-                                         0600);
+               DEBUG(10,("hash_a_service: creating servicehash\n"));
+               ServiceHash = db_open_rbt(NULL);
                if ( !ServiceHash ) {
                        DEBUG(0,("hash_a_service: open tdb servicehash failed!\n"));
                        return False;