1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

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

This commit is contained in:
Andrew Tridgell 2005-09-22 04:57:35 +00:00 committed by Gerald (Jerry) Carter
parent 1b8d368a67
commit 435cbcf78b

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) {