diff options
author | Andrew Tridgell <tridge@samba.org> | 2007-08-24 02:38:51 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 15:02:30 -0500 |
commit | 09672f7e4ab15d20fe5702bef8d0550464e44cab (patch) | |
tree | f6b3f172ec4a75b1cfd099ad0c1efd93f27e1827 /source4/lib/dbwrap/dbwrap.c | |
parent | 2119b7dff04076dd433246b8dcfe1d18ba4c855c (diff) | |
download | samba-09672f7e4ab15d20fe5702bef8d0550464e44cab.tar.gz samba-09672f7e4ab15d20fe5702bef8d0550464e44cab.tar.bz2 samba-09672f7e4ab15d20fe5702bef8d0550464e44cab.zip |
r24645: add in the ctdb dbwrap backend
(This used to be commit e2d173fde17ab903bddf2139d8100785280856bd)
Diffstat (limited to 'source4/lib/dbwrap/dbwrap.c')
-rw-r--r-- | source4/lib/dbwrap/dbwrap.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/lib/dbwrap/dbwrap.c b/source4/lib/dbwrap/dbwrap.c index e853967aa2..c0bac672aa 100644 --- a/source4/lib/dbwrap/dbwrap.c +++ b/source4/lib/dbwrap/dbwrap.c @@ -29,5 +29,10 @@ */ struct db_context *db_tmp_open(TALLOC_CTX *mem_ctx, const char *name, int tdb_flags) { + if (lp_parm_bool(-1, "ctdb", "enable", False) && + lp_parm_bool(-1, "ctdb", name, True)) { + return db_tmp_open_ctdb(mem_ctx, name, tdb_flags); + } + return db_tmp_open_tdb(mem_ctx, name, tdb_flags); } |