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)
commitf186dd90b6c0f1bcab5745650ebcf2772af95223
tree8e12dd467537eac597c9f384e20e2a8dedb319b7
parent52ff4859581f13fff53499e0f0daffebd5492910
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>
(This used to be ctdb commit 126cb0d369b2b1aed63801dc4ba0554399e8b7e4)
ctdb/client/ctdb_client.c
ctdb/common/ctdb_ltdb.c
ctdb/include/ctdb_private.h
ctdb/server/ctdb_ltdb_server.c