Move some common functions to common/ctdb_ltdb.c
authorMartin Schwenke <martin@meltin.net>
Fri, 11 Nov 2011 02:56:46 +0000 (13:56 +1100)
committerMartin Schwenke <martin@meltin.net>
Fri, 11 Nov 2011 03:31:50 +0000 (14:31 +1100)
commit126cb0d369b2b1aed63801dc4ba0554399e8b7e4
treed7181173dda39fce45e9cbf59ae90644ceab69f6
parentfdca12c25e6fce6206135b994dedf44265e4eb09
Move some common functions to common/ctdb_ltdb.c

Move identical copies of ctdb_null_func(), ctdb_fetch_func(),
ctdb_fetch_with_header_func() from ctdb_client.c and
ctdb_ltdb_server.c to somewhere common.

This is in the context of wanting to run CCAN-style tests where most
of the ctdbd code is just included in the test program.

Signed-off-by: Martin Schwenke <martin@meltin.net>
client/ctdb_client.c
common/ctdb_ltdb.c
include/ctdb_private.h
server/ctdb_ltdb_server.c