summaryrefslogtreecommitdiffstats
path: root/ctdb/tools
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-11-20 21:17:59 +0100
committerStefan Metzmacher <metze@samba.org>2009-12-16 08:03:55 +0100
commit003985acfd86c3777dd159845cfebc43eb3e19dc (patch)
tree21fe99e05d186e36457aa11862d7954fcba6fced /ctdb/tools
parent2d24073e9782de9b3225a5b416b0dcf8f9e3694a (diff)
downloadsamba-003985acfd86c3777dd159845cfebc43eb3e19dc.tar.gz
samba-003985acfd86c3777dd159845cfebc43eb3e19dc.tar.xz
samba-003985acfd86c3777dd159845cfebc43eb3e19dc.zip
ctdb: pass TDB_DISALLOW_NESTING to all tdb_open/tdb_wrap_open calls
metze Signed-off-by: Stefan Metzmacher <metze@samba.org> (This used to be ctdb commit 1635e931b909c66eb3b1f5357e3a549b1a0da70d)
Diffstat (limited to 'ctdb/tools')
-rw-r--r--ctdb/tools/ctdb_vacuum.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ctdb/tools/ctdb_vacuum.c b/ctdb/tools/ctdb_vacuum.c
index f517c6ea71..bd45287f2c 100644
--- a/ctdb/tools/ctdb_vacuum.c
+++ b/ctdb/tools/ctdb_vacuum.c
@@ -507,7 +507,9 @@ static int ctdb_repack_tdb(struct tdb_context *tdb)
return -1;
}
- tmp_db = tdb_open("tmpdb", tdb_hash_size(tdb), TDB_INTERNAL, O_RDWR|O_CREAT, 0);
+ tmp_db = tdb_open("tmpdb", tdb_hash_size(tdb),
+ TDB_INTERNAL|TDB_DISALLOW_NESTING,
+ O_RDWR|O_CREAT, 0);
if (tmp_db == NULL) {
DEBUG(DEBUG_ERR,(__location__ " Failed to create tmp_db\n"));
tdb_transaction_cancel(tdb);