summaryrefslogtreecommitdiff
path: root/source3/lib/ctdbd_conn.c
AgeCommit message (Collapse)AuthorFilesLines
2009-07-16Replace more long-lived contexts with talloc_autofree_context().Jeremy Allison1-1/+1
Jeremy.
2009-05-04Do not crash in ctdbd_traverse if ctdbd is not aroundVolker Lendecke1-0/+5
2009-01-29s3:ctdbd_conn: canonicalize ips before sending them to ctdbdStefan Metzmacher1-10/+40
This makes samba work with older ctdb versions. metze
2009-01-16s3:cluster: fix ctdb ipv6 supportStefan Metzmacher1-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
2009-01-05s3:events: change event_add_timed() prototype to match samba4Stefan Metzmacher1-2/+1
metze
2009-01-02packet.h API: The callback is now responsible to talloc_free() "buf"Volker Lendecke1-21/+28
2008-12-30s3:cluster: register the client connection via CTDB_CONTROL_TCP_ADDStefan Metzmacher1-7/+19
This means we correctly pass IPv6 addresses too. (CTDB_CONTROL_TCP_CLIENT was IPv4 only) metze
2008-10-13Use DATA_BLOB instead of "struct data_blob".Jelmer Vernooij1-4/+4
2008-09-29[s3]fix build --with-cluster-support after ndr_[pull|push]_struct blob changes.Michael Adam1-2/+2
Michael
2008-08-13fixed child exit handling and IP release handlingAndrew Tridgell1-0/+2
(This used to be commit 6fe27d296c389473c24e8c627a61bd56b364ad9f)
2008-08-13register the ctdbd reconfigure messageAndrew Tridgell1-0/+8
(This used to be commit 9d3217bb28765e107c230fb90b578dcc6f5d4375)
2008-08-13removed more unused codeAndrew Tridgell1-72/+0
(This used to be commit 30a697c82db53f9d801e220a7c6277f873ebce67)
2008-08-13samba3 can't handle NOREPLY yetAndrew Tridgell1-0/+3
(This used to be commit 21729256a550509c3c038efa5acdd6ac39027dce)
2008-08-13first cut at adding full transactions for ctdb to samba3Andrew Tridgell1-11/+31
(This used to be commit f91a3e0f7b7737c1d0667cd961ea950e2b93e592)
2008-08-13Use transaction start/cancel for persistent writes to avoid leaving the ↵Ronnie Sahlberg1-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)
2008-06-26ctdbd_connect: bump debug level to 1 for "connect failed" message.Michael Adam1-1/+1
Leave level 0 message for higher level callers. Michael (This used to be commit fee770e5d080b0513418e61e469f2824a1d771ec)
2008-03-17Use right control to attach to persistent databasesVolker Lendecke1-2/+5
This is a merge of 2a8f8b26f08ab09c34dff82417e541d8eb1ec91c and 4e6508dfee0d872a7fa42c9e58ba565137a27b3f from 3-0-ctdb (This used to be commit 46e50da0d550e43de3aaf0141c64f25e1c9997c2)
2008-01-16Merge CTDB-related fixes from samba-ctdb 3.0 branch ↵Alexander Bokovoy1-0/+36
(http://samba.org/~tridge/3_0-ctdb) Signed-off-by: Alexander Bokovoy <ab@samba.org>(This used to be commit 0c8e23afbbb2d081fc23908bafcad04650bfacea)
2007-12-09Fix connect(2) callers to use correct sockaddr size.James Peach1-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)
2007-11-22Fix an uninitialized variableVolker Lendecke1-0/+1
(This used to be commit e8b866ad87476ef69c06993d255269ce9fba3121)
2007-11-11Convert ctdb_conn.c to enum ndr_error_codeVolker Lendecke1-12/+13
Fix the build (This used to be commit 432d0e9cb2370e52f7d4cb58d2da747e526403e8)
2007-10-18RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison1-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)
2007-10-10r25323: Fix the buildVolker Lendecke1-1/+1
(This used to be commit e55b30ab8417cb36def8e4d8b8f6ba16b4e664c1)
2007-10-10r24773: Fix a ctdb connection lockupVolker Lendecke1-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)
2007-10-10r24031: Fix some 64 bit warningsVolker Lendecke1-3/+4
(This used to be commit c0fd9a14cf4f2a4334a8cae22248e7831ffa6bcf)
2007-10-10r24025: packet_send() expects DATA_BLOB elements as vaargsStefan Metzmacher1-3/+3
and not TDB_DATA metze (This used to be commit 3e4f552dbdd065fd7934d646e34199b52f486d5d)
2007-10-10r23863: handle NT_STATUS_RETRY and always print out the NTSTATUS stringStefan Metzmacher1-2/+13
before calling ctdb_fatal() metze (This used to be commit 48ece3c21e3a5e9aa434c847eefaab59274a4e6f)
2007-10-10r23784: use the GPLv3 boilerplate as recommended by the FSF and the license textAndrew Tridgell1-2/+1
(This used to be commit b0132e94fc5fef936aa766fb99a306b3628e9f07)
2007-10-10r23779: Change from v2 or later to v3 or later.Jeremy Allison1-1/+1
Jeremy. (This used to be commit 407e6e695b8366369b7c76af1ff76869b45347b3)
2007-10-10r23410: Merge the core of the cluster code.Volker Lendecke1-0/+1167
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)