1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-28 01:58:17 +03:00

r10409: allow smb.conf override of ldb synchronous transactions with "ldb:nosync = yes/no"

(This used to be commit 435cbcf78b70a82c2ec89fab21e4ff8af538f2f1)
This commit is contained in:
Andrew Tridgell 2005-09-22 04:57:35 +00:00 committed by Gerald (Jerry) Carter
parent af352b4664
commit 07f123b6c8

View File

@ -90,6 +90,11 @@ struct ldb_context *ldb_wrap_connect(TALLOC_CTX *mem_ctx,
talloc_free(ldb);
return NULL;
}
/* allow admins to force non-sync ldb for all databases */
if (lp_parm_bool(-1, "ldb", "nosync", False)) {
flags |= LDB_FLG_NOSYNC;
}
ret = ldb_connect(ldb, real_url, flags, options);
if (ret == -1) {