dbwrap: add dbwrap_tdb2 backend
authorStefan Metzmacher <metze@samba.org>
Wed, 19 Mar 2008 18:40:10 +0000 (19:40 +0100)
committerStefan Metzmacher <metze@samba.org>
Sat, 12 Apr 2008 07:14:09 +0000 (09:14 +0200)
commitdfb181ab732e0a43accb3b1b328617701fc3e566
treeb5c1feb7de444ce0d449c9014c4c76ec0194664f
parentd3eebed911becad9b97c78c10a53c9ca8ba066ec
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
(This used to be commit aa6230de0d5f1875aa8c12c4fc017d3a40f90890)
source3/Makefile.in
source3/include/dbwrap.h
source3/lib/dbwrap_tdb2.c [new file with mode: 0644]