dbwrap: add dbwrap_tdb2 backend
authorStefan Metzmacher <metze@samba.org>
Wed, 19 Mar 2008 18:40:10 +0000 (19:40 +0100)
committerKarolin Seeger <kseeger@samba.org>
Sun, 13 Apr 2008 11:29:50 +0000 (13:29 +0200)
commit7841e2b2609f1675eeb7aa9e8f3d03aea30186ef
tree12b4057f16c3a33191462537ab7291fc47349b62
parentf638e1fe7f1f58060e239f6d273ef7528ce0c913
dbwrap: add dbwrap_tdb2 backend

This backend can be used untill ctdb knows about real
transactions.

It stores a master tdb in a shared location and a readonly copy
on the local harddisk. Reads are always on the local tdb
and writes always on both. Change notify messages are send
to all message context, which ask for them. With the notifies
it's possible to just update the changed records, instead of
copying all records (which is the fallback).

You need to configure:

dbwrap:use_tdb2=yes
dbwrap_tdb2:master directory=/some/shared/path
dbwrap_tdb2:local directory=/var/lib/samba

metze
(cherry picked from commit aa6230de0d5f1875aa8c12c4fc017d3a40f90890)
source/Makefile.in
source/include/dbwrap.h
source/lib/dbwrap_tdb2.c [new file with mode: 0644]