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:
parent
1b8d368a67
commit
435cbcf78b
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user