diff options
-rw-r--r-- | source3/include/local.h | 3 | ||||
-rw-r--r-- | source3/locking/locking.c | 6 |
2 files changed, 6 insertions, 3 deletions
diff --git a/source3/include/local.h b/source3/include/local.h index 8960a4af55..c9b54ab1a2 100644 --- a/source3/include/local.h +++ b/source3/include/local.h @@ -235,4 +235,7 @@ #define MAX_LDAP_REPLICATION_SLEEP_TIME 5000 /* In milliseconds. */ +/* tdb hash size for the open database. */ +#define SMB_OPEN_DATABASE_TDB_HASH_SIZE 1049 + #endif diff --git a/source3/locking/locking.c b/source3/locking/locking.c index aad254f276..322824ea2f 100644 --- a/source3/locking/locking.c +++ b/source3/locking/locking.c @@ -315,9 +315,9 @@ BOOL locking_init(int read_only) return True; tdb = tdb_open_log(lock_path("locking.tdb"), - 0, TDB_DEFAULT|(read_only?0x0:TDB_CLEAR_IF_FIRST), - read_only?O_RDONLY:O_RDWR|O_CREAT, - 0644); + SMB_OPEN_DATABASE_TDB_HASH_SIZE, TDB_DEFAULT|(read_only?0x0:TDB_CLEAR_IF_FIRST), + read_only?O_RDONLY:O_RDWR|O_CREAT, + 0644); if (!tdb) { DEBUG(0,("ERROR: Failed to initialise locking database\n")); |