From e36d64728f79087610737fa54eee69af3ab99c5b Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 29 Dec 2008 11:02:32 +0100 Subject: s4:cluster: remove old/broken ctdb code We don't need a full copy of ctdb... If we want to readd cluster support, we should just use a ctdb client library. metze --- source4/cluster/ctdb/tests/ctdb_store.c | 156 -------------------------------- 1 file changed, 156 deletions(-) delete mode 100644 source4/cluster/ctdb/tests/ctdb_store.c (limited to 'source4/cluster/ctdb/tests/ctdb_store.c') diff --git a/source4/cluster/ctdb/tests/ctdb_store.c b/source4/cluster/ctdb/tests/ctdb_store.c deleted file mode 100644 index 8b44276d21..0000000000 --- a/source4/cluster/ctdb/tests/ctdb_store.c +++ /dev/null @@ -1,156 +0,0 @@ -/* - simple tool to create a lot of records on a tdb and to read them out - - Copyright (C) Andrew Tridgell 2006 - Ronnie sahlberg 2007 - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, see . -*/ - -#include "includes.h" -#include "lib/events/events.h" -#include "system/filesys.h" -#include "popt.h" -#include "cmdline.h" - -#include -#include - -static int num_records = 10; - - -static void store_records(struct ctdb_context *ctdb, struct event_context *ev) -{ - TDB_DATA key, data; - struct ctdb_db_context *ctdb_db; - TALLOC_CTX *tmp_ctx = talloc_new(ctdb); - int ret; - struct ctdb_record_handle *h; - uint32_t i; - - ctdb_db = ctdb_db_handle(ctdb, "test.tdb"); - - printf("creating %d records\n", num_records); - for (i=0;i