| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
Cc: 597386@bugs.debian.org
Signed-off-by: Kirill Smelkov <kirr@landau.phys.spbu.ru>
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
(This used to be ctdb commit fd16bcc1434841d84fdf78f80163c97c0b52b3fe)
|
|
|
|
|
|
|
|
|
|
| |
tdb_increment_seqnum_nonblock
Cc: 597386@bugs.debian.org
Signed-off-by: Kirill Smelkov <kirr@landau.phys.spbu.ru>
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
(This used to be ctdb commit 1778fd02eec6e64737167c46173c0c76c85cc4d9)
|
|
|
|
|
|
|
|
|
|
|
| |
Namely TDB_NOSYNC, TDB_SEQNUM, TDB_VOLATILE, TDB_ALLOW_NESTING and
TDB_DISALLOW_NESTING were missing.
Cc: 597386@bugs.debian.org
Signed-off-by: Kirill Smelkov <kirr@mns.spb.ru>
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
(This used to be ctdb commit d0c28ff1fedd27a99a7550fcc74e18cb1f536986)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The problem was tdb->name is NULL for TDB_INTERNAL databases, and
so it was crashing ...
#0 0xb76944f3 in strlen () from /lib/i686/cmov/libc.so.6
#1 0x0809862b in PyString_FromFormatV (format=0xb72b6a26 "Tdb('%s')", vargs=0xbfc26a94 "")
at ../Objects/stringobject.c:211
#2 0x08098888 in PyString_FromFormat (format=0xb72b6a26 "Tdb('%s')") at ../Objects/stringobject.c:358
#3 0xb72b65f2 in tdb_object_repr (self=0xb759e060) at ./pytdb.c:439
Cc: 597089@bugs.debian.org
Signed-off-by: Kirill Smelkov <kirr@mns.spb.ru>
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
(This used to be ctdb commit 3ff413baf04ce28eb54a80141250ae1284b2a521)
|
|
|
|
|
|
|
|
|
|
|
| |
Note, unlike tdb_open where flags is `int', tdb_{add,remove}_flags want
flags as `unsigned', so instead of "i" I used "I" in PyArg_ParseTuple.
Cc: 597386@bugs.debian.org
Signed-off-by: Kirill Smelkov <kirr@mns.spb.ru>
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
(This used to be ctdb commit 7389f8a8a634c2fe0f068831326d92e6bfa0d046)
|
|
|
|
|
|
| |
this might help reduce test times and load on test machines
(This used to be ctdb commit 5c4240c364c52073ca64fddf2aa2c1593db0093b)
|
|
|
|
| |
(This used to be ctdb commit f1c06608245ec34493c330d891e04c250ad64b20)
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is Stefan Metzmacher <metze@samba.org>'s patch with minor changes:
1) Use the TDB_MAGIC constant so both hashes aren't of strings.
2) Check the hash in tdb_check (paranoia, really).
3) Additional check in the (unlikely!) case where both examples hash to 0.
4) Cosmetic changes to var names and complaint message.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(This used to be ctdb commit 63c582c99128c3623e270e8425966cab7744fb2f)
|
|
|
|
|
|
|
|
| |
We must not endian-convert the magic string, just the rest.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(This used to be ctdb commit 525390863ad39acea08ceb88531dc59d118fcad4)
|
|
|
|
|
|
|
|
|
|
|
|
| |
Commit bc1c82ea137 "Fix tdb_check() to work with read-only tdb databases."
claimed to do this, but tdb_lockall_read() fails on read-only databases.
Also make sure we can still do tdb_check() inside a transaction (weird,
but we previously allowed it so don't break the API).
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(This used to be ctdb commit 2558eb250011893d09dbeaedaffeefa0e397142f)
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
We can end up with dead areas when we die during transaction commit;
tdb_check() fails on such a (valid) database.
This is particularly noticable now we no longer truncate on recovery;
if the recovery area was at the end of the file we used to remove it
that way.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(This used to be ctdb commit b4162a95ff9ae28cda8d9c76c51c9480104517a7)
|
|
|
|
| |
(This used to be ctdb commit 3a033156c48d821d48fd18f12c3b0ac14bbddc93)
|
|
|
|
|
|
| |
it to 1 second
(This used to be ctdb commit cb8c779bb5d9862abbe08919aa181a1a1b2bef18)
|
|
|
|
|
|
| |
Add a new command "ctdb stats [num]" that prints the [num] most recent statistics intervals collected.
(This used to be ctdb commit e6e16fcd5a45ebd3739a8160c8fb5f44494edb9e)
|
|
|
|
| |
(This used to be ctdb commit 09e5a2fb47c312f71f455cdbf8d9cabcca1041a4)
|
|
|
|
|
|
| |
everywhere instead of manipulating the coutenrs directly.
(This used to be ctdb commit 2e648df890e5713bc575965d87937827b068d0d7)
|
|
|
|
|
|
| |
This serviceability tool was lost during the migration from the old eventsystem to the tevent system.
(This used to be ctdb commit b4c00b4ac30ec215629f44f802ce9660abcd7a48)
|
|
|
|
| |
(This used to be ctdb commit 8b4d1df3abcae03cf7a339d8390c816682a43019)
|
|
|
|
| |
(This used to be ctdb commit fdb4c02f595fa207310a9a48da3fefd653fa9e4b)
|
|
|
|
|
|
| |
enhance the test example to show the new releaseip/takeip messages
(This used to be ctdb commit 21cc57883e6c02b0e037211b26d1d866d5d7f03d)
|
|
|
|
|
|
| |
metze
(This used to be ctdb commit c386f2c62f06f1c60047b7d4b1ec7a9eec11873c)
|
|
|
|
|
|
| |
metze
(This used to be ctdb commit 80b8889267339b870868841ff077e850bc5b52e2)
|
|
|
|
|
|
| |
metze
(This used to be ctdb commit 93df096773c89f21f77b3bcf9aa90bf28881b852)
|
|
|
|
|
|
| |
metze
(This used to be ctdb commit 942f44123350d4d0c4ad7f3fcd5ff2d0d175739b)
|
|
|
|
|
|
| |
local node
(This used to be ctdb commit 1261f3d9702800a4e59550c881350daf479f00ef)
|
|
|
|
|
|
|
|
|
| |
define a new symbol to represent this range similarly to NFSD and ISCSID
Keep the old symbol name to be backward compatible with software using
these headers.
(This used to be ctdb commit 2ce34e50d057ba95249117a581658a5ad7e8eb60)
|
|
|
|
|
|
| |
servers
(This used to be ctdb commit 84a44ac8ee74dd7af15e378c6cafbedb95feec60)
|
|
|
|
|
|
| |
NFSD and ISCSID for now.
(This used to be ctdb commit 4cd4bab68f0ba0305a585a2aabcb6871cdb11d96)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This function returns a pointer to a nodemap structure.
The returned structure must later be freed by calling ctdb_free_nodemap().
Move the definition of ctdb_sock_addr from ctdb_client.h to ctdb_protocol.h
Move the definition of the node flags, ctdb_node_and_flags and ctdb_node_map from ctdb_private.h to ctdb_protocol.h
Add both sync and async example for ctdb_getnodemap to the test application libctdb/tst.c
(This used to be ctdb commit 31c10eb2b337fd7d8a97a1f9e69b0e7570fec71d)
|
|
|
|
| |
(This used to be ctdb commit e07fdbaf12bbe84370bc47a1979fe198a06a6cc8)
|
|
|
|
|
|
| |
Always read it from the /etc/ctdb/nodes file
(This used to be ctdb commit a0fdb25bb2cac177cdc32b938fa08fd665aa873e)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
network connectivity outside of the cluster to still be able to
participate in a natgw group.
These nodes can not become natgw master since they lack external network
connectivity.
These nodes are configured just the same way as for any other node with
NATGW, with the following two exceptions :
* we do NOT set CTDB_NATGW_PUBLIC_IFACE at all on these nodes.
since these ndoes lack external network we should not check the interface
for link.
* we must set CTDB_NATGW_SLAVE_ONLY=yes to flag that this is a node that
can not become natgw master.
(This used to be ctdb commit ab7b00a37e55beffc074be95b55d8a5c7cb9eef2)
|
|
|
|
|
|
|
|
|
| |
since that will usually be /etc/ctdb/state and storing this under /etc is just
wrong.
Add a new variable CTDB_VARDIR that defaults to /var/ctdb and store the data there instead.
(This used to be ctdb commit 516423c25afa9861d9988096efa8a4a2b12b31b1)
|
|
|
|
|
|
|
|
| |
dont dereference a null pointer while trying to print the log message for the failure.
also shutdown ctdb with ctdb_fatal()
(This used to be ctdb commit f8642d0438c6bbb34a72c25d6a904b626e247410)
|
|
|
|
| |
(This used to be ctdb commit b5169e037fe113a5b62f510646b8fefc055c053b)
|
|
|
|
|
|
| |
or else tar and friends will throw an error in the log
(This used to be ctdb commit 96cbd2c0aa9a4641a42b3c33374675fa732ed1e5)
|
|
|
|
| |
(This used to be ctdb commit 1a41cd7332703629001201eea8ae9b94f1341c9d)
|
|
|
|
| |
(This used to be ctdb commit 14c4d99513b4bdb94f60c3e9c4823e04b0833e60)
|
|
|
|
|
|
| |
manually and ther eis no check for errors. should fix this later
(This used to be ctdb commit e824af1a41f8ceec1edf6b3d1d6e1758fa00deb2)
|
|
|
|
| |
(This used to be ctdb commit 893465ddde0b730aa142f165cfdc4a57fc5517bf)
|
|
|
|
| |
(This used to be ctdb commit 8909d3a10362a8e58ffd71bc4cd035c12c584157)
|
|\
| |
| |
| | |
(This used to be ctdb commit cc8c851e2e0b46f00b18a6dc61fd2774e97850dd)
|
| |
| |
| |
| |
| |
| |
| |
| | |
Use onnode any where possible rather than a fixed node.
Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit 51561720d2b4db5b307da3d410661075e2a6c3ca)
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
We now kill ctdbd on the test node instead of disabling it. This
ensures that the only tickles we see will come from the takeover node.
We also sleep for TickleUpdateInterval before checking for asking ctdb
about the tickles.
Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit 48cd8325c070f6942aa13a25269021e4c8ed188f)
|
| |
| |
| |
| |
| |
| | |
Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit c32ffd203e42a39010ce2d6e98253e8e48de515a)
|
| |
| |
| |
| |
| |
| | |
Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit c35d3e6341bc4e288393efa429b68bf6568b9b11)
|
| |
| |
| |
| |
| |
| | |
Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit 4763ccbfeaedd0fd953dbeda17ef9af41386688b)
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This adds a new function update_tickles() that tracks tickles for a
given port using the new ctdb addtickle/deltickle commands. This
function is used in events.d/60.nfs to handle NFS tickles.
events.d/61.nfstickle is removed. The
/proc/sys/net/ipv4/tcp_tw_recycle setup is also moved to
events.d/60.nfs.
Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit dca4c4ebf3c35f8db3ae208efb7a83abbf726ed6)
|
| |
| |
| |
| |
| |
| |
| |
| | |
It is too hard to do anything else...
Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit 08b636b500855e38e708e6963d8e63ded97c25ec)
|
| |\
| | |
| | |
| | | |
(This used to be ctdb commit 090d9c8443cfa13d45f8c5d2845aea5aa9f7251d)
|