summaryrefslogtreecommitdiffstats
path: root/source3/include/ctdbd_conn.h
Commit message (Collapse)AuthorAgeFilesLines
* smbd/winbindd: Do an early check if ctdbd is functionalVolker Lendecke2013-10-171-0/+1
| | | | | | | | | This will avoid panic calls when smbd and winbind is started in cluster mode before ctdb is functional. It still logs something sane at debug level 0, but it does not panic and core anymore. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* ctdb-conn: remove ctdbd_fetchVolker Lendecke2013-03-261-3/+0
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* ctdb-conn: Add ctdbd_parseVolker Lendecke2013-03-261-0/+5
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* s3:ctdbd_conn: use unitX_t types consistently throughout the moduleMichael Adam2012-08-011-9/+9
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3: Introduce ctdb_messaging_send_blobVolker Lendecke2012-04-171-0/+3
| | | | Send a raw blob without the messaging.idl wrap
* dbwrap_ctdb: only fetch a read-only copy if we had a record already.Rusty Russell2012-03-051-1/+2
| | | | | | | | | | | | | Because revoking read-only copies of records is expensive, we only want ctdbd to do it for high-turnover records. A basic heuristic is that if we don't find a local copy of the record, don't ask for a read-only copy. The fetch itself will cause ctdbd to migrate the record, so eventually we will have a local copy. Next time it gets migrated away, we'll call ctdbd_fetch() with local_copy = true. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* s3-ctdb: Make use of CTDB_CONTROL_CHECK_SRVIDSVolker Lendecke2011-11-301-0/+4
| | | | | | | | This should be a lot quicker than PROCESS_EXISTS followed by looking at serverid.tdb Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Nov 30 12:47:27 CET 2011 on sn-devel-104
* s3-ctdb: Add ctdb_processes_existVolker Lendecke2011-10-271-0/+3
| | | | | This sends out a number of process_exists controls in parallel and collects the replies as they come in.
* s3: Fix some nonempty blank linesVolker Lendecke2011-10-271-3/+3
|
* tdb_compat.h: divert every tdb build and includes to tdb_compatRusty Russell2011-06-201-1/+1
| | | | | | | | We change all the headers and wscript files to use tdb_compat; this means we have one place to decide whether to use TDB1 or TDB2. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* s3: only include tdb headers where needed.Günther Deschner2011-05-061-0/+2
| | | | Guenther
* s3-messages: only include messages.h where needed.Günther Deschner2011-03-301-0/+2
| | | | Guenther
* s3-prototypes: remove protos of some dead functions.Günther Deschner2011-03-241-4/+0
| | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Thu Mar 24 00:52:01 CET 2011 on sn-devel-104
* s3: Make ctdbd_init_connection staticVolker Lendecke2010-08-311-2/+0
|
* s3:ctdb_conn: add ctdbd_conn_get_fd() to get the fd out of the ctdb connectionMichael Adam2010-02-121-0/+2
| | | | Michael
* s3: Add ctdb_conn_msg_ctx()Volker Lendecke2010-02-121-0/+1
|
* s3: Implement global locks in a g_lock tdbVolker Lendecke2010-02-121-0/+2
| | | | | | This is the basis to implement global locks in ctdb without depending on a shared file system. The initial goal is to make ctdb persistent transactions deterministic without too many timeouts.
* s3:cluster: fix ctdb ipv6 supportStefan Metzmacher2009-01-161-2/+2
| | | | | | | | | | | | | | | We need to use CTDB_CONTROL_TCP_CLIENT instead of CTDB_CONTROL_TCP_ADD. CTDB_CONTROL_TCP_CLIENT has support for 2 modes in newer ctdb versions: - with struct ctdb_control_tcp it only supports ipv4. - with struct ctdb_control_tcp_addr it supports ipv4 and ipv6. You need new header files which defines struct ctdb_control_tcp_addr, but at runtime it should be fine to work against older ctdb versions (<= 1.0.68). metze
* s3:cluster: register the client connection via CTDB_CONTROL_TCP_ADDStefan Metzmacher2008-12-301-2/+2
| | | | | | | This means we correctly pass IPv6 addresses too. (CTDB_CONTROL_TCP_CLIENT was IPv4 only) metze
* first cut at adding full transactions for ctdb to samba3Andrew Tridgell2008-08-131-0/+5
| | | | (This used to be commit f91a3e0f7b7737c1d0667cd961ea950e2b93e592)
* Use transaction start/cancel for persistent writes to avoid leaving the ↵Ronnie Sahlberg2008-08-131-0/+2
| | | | | | | database in an inconsistent state if we crash during the operation Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com> (This used to be commit 09329f1f9114af44fc4e5e4f29a7315912313125)
* Merge CTDB-related fixes from samba-ctdb 3.0 branch ↵Alexander Bokovoy2008-01-161-0/+6
| | | | | | (http://samba.org/~tridge/3_0-ctdb) Signed-off-by: Alexander Bokovoy <ab@samba.org>(This used to be commit 0c8e23afbbb2d081fc23908bafcad04650bfacea)
* RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison2007-10-181-1/+1
| | | | | | | | bugs in various places whilst doing this (places that assumed BOOL == int). I also need to fix the Samba4 pidl generation (next checkin). Jeremy. (This used to be commit f35a266b3cbb3e5fa6a86be60f34fe340a3ca71f)
* r23784: use the GPLv3 boilerplate as recommended by the FSF and the license textAndrew Tridgell2007-10-101-2/+1
| | | | (This used to be commit b0132e94fc5fef936aa766fb99a306b3628e9f07)
* r23779: Change from v2 or later to v3 or later.Jeremy Allison2007-10-101-1/+1
| | | | | Jeremy. (This used to be commit 407e6e695b8366369b7c76af1ff76869b45347b3)
* r23410: Merge the core of the cluster code.Volker Lendecke2007-10-101-0/+65
I'm 100% certain I've forgotten to merge something, but the main code should be in. It's mainly in dbwrap_ctdb.c, ctdbd_conn.c and messages_ctdbd.c. There should be no changes to the non-cluster case, it does survive make test on my laptop. It survives some very basic tests with ctdbd enables, I did not do the full test suite for clusters yet. Phew... Volker (This used to be commit 15553d6327a3aecdd2b0b94a3656d04bf4106323)