summaryrefslogtreecommitdiffstats
path: root/source3/lib/ctdbd_conn.c
Commit message (Collapse)AuthorAgeFilesLines
* s3:ctdb: pass the ctdb control flags to the ctdb daemon when sending the controlMichael Adam2011-03-311-0/+1
| | | | | | The only flag that is currently used is the NOREPLY flag to indicate that the client expects no reply packet. This needs to get passed down to the ctdb daemon so that it really does not send a reply.
* s3:ctdb: samba can now handle the NOREPLY flagMichael Adam2011-03-311-3/+0
| | | | | | Revert "samba3 can't handle NOREPLY yet" This reverts commit 9bf211db6d7d6ef6e59508de69d6d8dfe5bae059.
* s3:ctdb: correctly handle cstatus if CTDB_CTRL_FLAG_NOREPLY is set.Michael Adam2011-03-311-0/+3
|
* s3-messages: make ndr_messaging.h part of messages.h.Günther Deschner2011-03-301-2/+0
| | | | Guenther
* s3-messages: only include messages.h where needed.Günther Deschner2011-03-301-0/+1
| | | | Guenther
* s3-packet: only include packet.h where needed.Günther Deschner2011-03-161-0/+1
| | | | Guenther
* s3: Eliminate select from packet_fd_read_syncVolker Lendecke2011-02-281-6/+5
|
* s3: Remove superfluous ;Günther Deschner2011-02-021-1/+1
| | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Wed Feb 2 15:44:21 CET 2011 on sn-devel-104
* s3: Fix the code to immediately disconnect from a non-working ctdbdVolker Lendecke2011-01-211-0/+1
|
* s3: Do not connect to ctdb if it is blocked for some reasonVolker Lendecke2010-11-021-0/+58
|
* cluster_fatal() exit code should not indicate success.Martin Schwenke2010-11-021-1/+1
| | | | | | | | | | cluster_fatal() logs a fatal event and then exits with 0. This seems wrong. Sometimes command like "net" use this code and return incorrect empty output but then exit with 0. This simply changes the exit code to 1. Signed-off-by: Martin Schwenke <martin@meltin.net>
* s3: Pass tdb_flags to ctdbd when attaching to a dbVolker Lendecke2010-10-261-1/+1
| | | | This is required to make ctdb create databases with INCOMPATIBLE_HASH
* s3: Remove talloc_autofree_context() from ctdb_read_req()Volker Lendecke2010-09-261-1/+2
|
* s3-build: only include ctdbd_conn.h where needed.Günther Deschner2010-09-201-0/+1
| | | | Guenther
* s3-ctdb: ctdbd_init_connection() is static to this file.Günther Deschner2010-09-011-8/+0
| | | | Guenther
* s3: Make ctdbd_init_connection staticVolker Lendecke2010-08-311-2/+2
|
* s3: Remove procid_self() from ctdb_read_req() and ctdb_handle_message()Volker Lendecke2010-07-051-4/+8
|
* s3: Remove some type-punned warningsVolker Lendecke2010-07-051-5/+5
|
* s3-build: fix the build.Günther Deschner2010-05-181-2/+2
| | | | Guenther
* s3:ctdb_conn: add ctdbd_conn_get_fd() to get the fd out of the ctdb connectionMichael Adam2010-02-121-0/+5
| | | | Michael
* s3: Add ctdb_conn_msg_ctx()Volker Lendecke2010-02-121-0/+5
|
* s3: Implement global locks in a g_lock tdbVolker Lendecke2010-02-121-5/+68
| | | | | | 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-brlock: we don't need these MSG_SMB_UNLOCK calls nowAndrew Tridgell2010-02-051-8/+0
| | | | These have been replaced with the min timeout in blocking.c
* s3: Add parameter "ctdb timeout"Volker Lendecke2009-11-051-2/+13
| | | | | | | | When something in the cluster blocks, it can happen that we wait indefinitely long for ctdb, just adding to the blocking condition. In theory, nothing should block, but as someone said "In practice the difference between theory and practice is larger than in theory". This adds a timeout parameter in seconds, after which we stop waiting for ctdb and panic.
* s3: Fix a 100% CPU loop when ctdbd dies during a traverseVolker Lendecke2009-11-021-0/+1
|
* Fix some nonempty blank linesVolker Lendecke2009-08-071-10/+9
|
* Replace more long-lived contexts with talloc_autofree_context().Jeremy Allison2009-07-161-1/+1
| | | | Jeremy.
* Do not crash in ctdbd_traverse if ctdbd is not aroundVolker Lendecke2009-05-041-0/+5
|
* s3:ctdbd_conn: canonicalize ips before sending them to ctdbdStefan Metzmacher2009-01-291-10/+40
| | | | | | This makes samba work with older ctdb versions. metze
* s3:cluster: fix ctdb ipv6 supportStefan Metzmacher2009-01-161-10/+20
| | | | | | | | | | | | | | | 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:events: change event_add_timed() prototype to match samba4Stefan Metzmacher2009-01-051-2/+1
| | | | metze
* packet.h API: The callback is now responsible to talloc_free() "buf"Volker Lendecke2009-01-021-21/+28
|
* s3:cluster: register the client connection via CTDB_CONTROL_TCP_ADDStefan Metzmacher2008-12-301-7/+19
| | | | | | | This means we correctly pass IPv6 addresses too. (CTDB_CONTROL_TCP_CLIENT was IPv4 only) metze
* Use DATA_BLOB instead of "struct data_blob".Jelmer Vernooij2008-10-131-4/+4
|
* [s3]fix build --with-cluster-support after ndr_[pull|push]_struct blob changes.Michael Adam2008-09-291-2/+2
| | | | Michael
* fixed child exit handling and IP release handlingAndrew Tridgell2008-08-131-0/+2
| | | | (This used to be commit 6fe27d296c389473c24e8c627a61bd56b364ad9f)
* register the ctdbd reconfigure messageAndrew Tridgell2008-08-131-0/+8
| | | | (This used to be commit 9d3217bb28765e107c230fb90b578dcc6f5d4375)
* removed more unused codeAndrew Tridgell2008-08-131-72/+0
| | | | (This used to be commit 30a697c82db53f9d801e220a7c6277f873ebce67)
* samba3 can't handle NOREPLY yetAndrew Tridgell2008-08-131-0/+3
| | | | (This used to be commit 21729256a550509c3c038efa5acdd6ac39027dce)
* first cut at adding full transactions for ctdb to samba3Andrew Tridgell2008-08-131-11/+31
| | | | (This used to be commit f91a3e0f7b7737c1d0667cd961ea950e2b93e592)
* Use transaction start/cancel for persistent writes to avoid leaving the ↵Ronnie Sahlberg2008-08-131-4/+37
| | | | | | | 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)
* ctdbd_connect: bump debug level to 1 for "connect failed" message.Michael Adam2008-06-261-1/+1
| | | | | | | Leave level 0 message for higher level callers. Michael (This used to be commit fee770e5d080b0513418e61e469f2824a1d771ec)
* Use right control to attach to persistent databasesVolker Lendecke2008-03-171-2/+5
| | | | | | This is a merge of 2a8f8b26f08ab09c34dff82417e541d8eb1ec91c and 4e6508dfee0d872a7fa42c9e58ba565137a27b3f from 3-0-ctdb (This used to be commit 46e50da0d550e43de3aaf0141c64f25e1c9997c2)
* Merge CTDB-related fixes from samba-ctdb 3.0 branch ↵Alexander Bokovoy2008-01-161-0/+36
| | | | | | (http://samba.org/~tridge/3_0-ctdb) Signed-off-by: Alexander Bokovoy <ab@samba.org>(This used to be commit 0c8e23afbbb2d081fc23908bafcad04650bfacea)
* Fix connect(2) callers to use correct sockaddr size.James Peach2007-12-091-1/+1
| | | | | | | | | | Some systems (eg Mac OSX 10.5) require the length passed to match the socket address family. This introduces sys_connect() that does the right thing, and replaces all uses oc connect(2) with sys_connect(). Note that there are some LGPL callers that still call connect(2) directly. (This used to be commit e1bfdc17c49da582cdf907e260301ab1946b2ed3)
* Fix an uninitialized variableVolker Lendecke2007-11-221-0/+1
| | | | (This used to be commit e8b866ad87476ef69c06993d255269ce9fba3121)
* Convert ctdb_conn.c to enum ndr_error_codeVolker Lendecke2007-11-111-12/+13
| | | | | Fix the build (This used to be commit 432d0e9cb2370e52f7d4cb58d2da747e526403e8)
* RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison2007-10-181-2/+2
| | | | | | | | 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)
* r25323: Fix the buildVolker Lendecke2007-10-101-1/+1
| | | | (This used to be commit e55b30ab8417cb36def8e4d8b8f6ba16b4e664c1)
* r24773: Fix a ctdb connection lockupVolker Lendecke2007-10-101-6/+40
| | | | | | | | | | The lockup could happen when packet_read_sync() gets two packets in a row, the first one being an async message, and the second one being the response to a ctdb request. Also add some debug msg to ctdb_conn.c, and cut off the "locking key" messages to only dump 20 hex chars at debug level 10. >10 will dump everything. (This used to be commit 0a55880a240b619810371a19144dd0a75208adfe)