summaryrefslogtreecommitdiffstats
path: root/ctdb/include/includes.h
Commit message (Collapse)AuthorAgeFilesLines
* ctdb-build: Move internal include files in a separate directoryAmitay Isaacs2014-05-271-68/+0
| | | | | | | | This will allow to build clustered samba with built-in ctdb tree rather than needing to install CTDB first. Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Michael Adam <obnox@samba.org>
* util: Add hex_decode_talloc() to decode hex string into a binary blobAmitay Isaacs2013-03-251-0/+1
| | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 307416afda707b687f5e89e8438e45c154a4c806)
* server: Replace BOOL datatype with bool, True/False with true/falseAmitay Isaacs2012-05-281-6/+1
| | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 6e5cbe8fff71985e5a2fc16b7e9f2b868011ff5d)
* includes: Move special tevent defines from tevent.h to includes.hAmitay Isaacs2012-04-131-0/+7
| | | | | | | | | This allows to build against system tevent library. Also include tevent header along with other common headers. Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 9ae4389c2c959c5dcd8395fdae2b25ed7e1e873a)
* Added some #ifndefs to stop files being included multiple times.Martin Schwenke2011-11-111-0/+5
| | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit fdca12c25e6fce6206135b994dedf44265e4eb09)
* libctdb: reorganize headers: remove ctdb.h, add ctdb_client.h and ↵Rusty Russell2010-05-201-1/+1
| | | | | | | | | | | | | | ctdb_protocol.h ctdb_client.h is the existing internal client interface (which was mainly in ctdb.h), and ctdb_protocol.h is the information needed for the wire protocol only. ctdb.h will be the new, shiny, libctdb API. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (This used to be ctdb commit 4bba6b8cd47b352f98d41f9f06258d5ac3c9adef)
* lib/util: import fault/backtrace handling from samba.Stefan Metzmacher2010-01-201-1/+4
| | | | | | metze (This used to be ctdb commit 8171d66f0061fe23ed6dfef87ffe63bfc19596eb)
* move DEBUG* macros to one placeStefan Metzmacher2010-01-201-0/+2
| | | | | | metze (This used to be ctdb commit 4b4dd5d7f81bf226e05c7f3d40087043da1517a2)
* Dont store debug level DEBUG_DEBUG in the in-memory ringbuffer.Ronnie Sahlberg2009-12-041-1/+1
| | | | | | | | It is unlikely we will need something this verbose for normal troubleshooting. This allows us to keep a significantly longer time interval of log messages in the 500k slots available in the ringbuffer. (This used to be ctdb commit cc99c05c0c6484ad574039a454e6133852cb41fa)
* add an in memory ringbuffer where we store the last 500000 log entries ↵Ronnie Sahlberg2009-11-181-1/+1
| | | | | | | | regardless of log level. add commandt to extract this in memory buffer and to clear it (This used to be ctdb commit 29d2ee8d9c6c6f36b2334480f646d6db209f370e)
* Fix the build on AIX: sys/socket.h needs to be included before ctdb.hMichael Adam2009-01-291-0/+1
| | | | | | | | | | (for struct sockaddr to be defined) Thanks to William Jojo <w.jojo@hvcc.edu> for reporting. Michael (This used to be ctdb commit 7558bca1e99884c02747adb7cbea799d04ee24d5)
* track both when we last started and ended a recovery.Ronnie Sahlberg2008-07-021-0/+1
| | | | | | | | | | | | make ctdb uptime print how long the recovery took in the recovery daemon when we check that the public ip address allocation on the local node is correct (we have the ips we should have and we dont have any we shouldnt have) use ctdb uptime and check the recovery start/stop times and make sure we dont check for ip allocation inconsistencies during a recovery where the ip address allocation is in flux. (This used to be ctdb commit f86551580349b7f662f9a07e4eb0c1189e38e429)
* added debug constants to allow for better mapping to syslog levelsAndrew Tridgell2008-02-041-2/+14
| | | | (This used to be ctdb commit 7ba8f1dde318eab03f4257e5a89fd23e7281e502)
* this is needed with merged tdbAndrew Tridgell2008-01-051-0/+1
| | | | (This used to be ctdb commit 3dc07f2bf98ab445ab960ef14173bc6924e3b658)
* minor back-merge from samba4Andrew Tridgell2007-07-101-1/+1
| | | | (This used to be ctdb commit c591f9b2d2847f440702e7264c7da2fd6d69f4be)
* some #include cleanupsAndrew Tridgell2007-06-071-1/+0
| | | | (This used to be ctdb commit 1a07d87122d51a40cd8ad5fe13533298c26857cb)
* merge latest versions of lib/replace, lib/talloc, lib/tdb and lib/events ↵Andrew Tridgell2007-05-021-0/+2
| | | | | | into ctdb bzr tree (This used to be ctdb commit eaea8a9fa8d2f5e08f3af619fa1008a663f39053)
* added a useful tool for dumping a ctdbAndrew Tridgell2007-04-221-0/+2
| | | | (This used to be ctdb commit 671ed94011e21396571a3f4a5191b9a83911c952)
* Add timestamps to debug output.Volker Lendecke2007-04-171-1/+2
| | | | (This used to be ctdb commit 197a02384bd2ca42dfff4c0357175424d2321e9c)
* use the common cmdline code in ctdbdAndrew Tridgell2007-04-171-1/+1
| | | | | | add a basic debug system with -dXX (This used to be ctdb commit af9f21cef79f888c57d3b50a23ca787c9567ce60)
* this is a demonstration of an idea for handling locks in ctdb.Andrew Tridgell2007-04-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | The problem we have is this: - we want the client smbd processes to be able to 'shortcut' access to the ltdb, by directly accessing the ltdb, and if the header of the record shows we are the dmaster then process immediately, with no overhead of talking across the unix domain socket - a client doing a shortcut will use tdb_chainlock() to lock the record while processing - we want the main ctdb daemon to be able to set locks on the record, and when those locks collide with a 'shortcut' fcntl lock, we want the ctdb daemon to keep processing other operations - we don't want to have to send a message from a smbd client to the ctdbd each time it releases a lock The solution is shown in this example. Note that the expensive fork() and blocking lock is only paid in case of contention, so in the median case I think this is zero cost. (This used to be ctdb commit a3248c3e2b740cd2403acffd3c1f6a33dca0ea03)
* merge back some changes from Samba4Andrew Tridgell2007-04-041-0/+4
| | | | (This used to be ctdb commit b946ff61c0e4b3269d3c7e01093d0a6d5215d6ee)
* Added overload test scenario + fixed 1 send queue bug.Peter Somogyi2007-01-301-1/+1
| | | | | | TODO: externize debug level (This used to be ctdb commit 98442ce3e2b3f09ca6736abfa0a8314cbdafaac7)
* Adjusted debug level and test scenario.Peter Somogyi2007-01-261-1/+3
| | | | (This used to be ctdb commit 7d87132195e603f936368da5dd4cb6754c45b721)
* - added in idtree for efficient reqid handlingAndrew Tridgell2006-11-281-0/+1
| | | | | | | | - started adding ctdb_call() code - added ctdb_call_local() implementation (This used to be ctdb commit 97b1fdf7fa0e230f36add3f1770ecb3a9faee0a1)
* started splitting out transport codeAndrew Tridgell2006-11-271-0/+29
(This used to be ctdb commit 3b75ef65bd0bff9c6366aba5a26b90be509fa77b)