summaryrefslogtreecommitdiffstats
path: root/ctdb/lib/tevent
Commit message (Collapse)AuthorAgeFilesLines
* dlinklist: Fix a typoVolker Lendecke2014-04-021-1/+1
| | | | | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Michael Adam <obnox@samba.org> Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Wed Apr 2 17:11:37 CEST 2014 on sn-devel-104
* tevent: Sync to tevent 0.9.18 from upstreamAmitay Isaacs2013-05-2928-726/+3782
| | | | (This used to be ctdb commit 82d61f77c01df0fbb42743593937b175ce22a445)
* replace: Sync to latest replace from upstreamAmitay Isaacs2013-05-291-0/+34
| | | | | | | | | | | | | The latest commits affecting lib/replace remove autoconf build from Samba tree. So using following commit as a sync point. commit 9ddfd7d8784e6f546628f48990b69ee2850be52d Author: Andrew Bartlett <abartlet@samba.org> Date: Wed May 22 17:23:30 2013 +1000 Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 506b27c944b4031e8a325816bd12abddd442a0bb)
* build: Fix for tevent autoconf checkSumit Bose2013-03-271-1/+1
| | | | | | The list of include files is the 4th argument of AC_CHECK_DECLS. (This used to be ctdb commit 85b777196289646ca37e06ebbf1f7a684d0aabc5)
* build: Fix the build with old system-installed teventVolker Lendecke2012-11-081-1/+4
| | | | | | We depend on the tracing callback mechanism in ctdb. (This used to be ctdb commit 5f58c811127a89f162b6a41ddcd6e944801740a5)
* tevent: change version to 0.9.16Stefan Metzmacher2012-06-121-0/+82
| | | | | | | | | | | This adds tevent_*_trace_*() and tevent_context_init_ops() metze Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Fri Jun 8 20:47:41 CEST 2012 on sn-devel-104 (This used to be ctdb commit 0dc204988eadff214dd149a756d756ab6e96e410)
* tevent: expose tevent_context_init_opsStefan Metzmacher2012-06-122-3/+19
| | | | | | | | | | This can be used to implement wrapper backends, while passing a private pointer to the backens init function via ev->additional_data. metze (This used to be ctdb commit 7ebc00dc6a89043a971a720e7c21baf5f2a0233d)
* lib/tevent: Add trace point callbackMartin Schwenke2012-06-127-0/+83
| | | | | | | | | | | | | | Set/get a single callback function to be invoked at various trace points. Define "before wait" and "after wait" trace points - more trace points can be added later if required. CTDB wants this to log long waits and events. Pair-programmed-with: Amitay Isaacs <amitay@gmail.com> Signed-off-by: Martin Schwenke <martin@meltin.net> Signed-off-by: Stefan Metzmacher <metze@samba.org> (This used to be ctdb commit cb2bbe93628c1ab932c2e1ad6e2ec199a98f74c6)
* Revert "TEVENT: Add back tracking of long runnig events to the local copy ↵Martin Schwenke2012-06-125-66/+0
| | | | | | | | | | of tevent library" This reverts commit 5aba53e6adcfcd7edbdac9e30aa5fcba176aca00. Do this using new tevent trace point callback. (This used to be ctdb commit 88040778aace229d724de1ba7556aded12e22f86)
* lib/tevent: In poll_event_context, add a pointer back to the tevent_contextMartin Schwenke2012-06-121-0/+4
| | | | | | | | | This makes it consistent with the other backends. Signed-off-by: Martin Schwenke <martin@meltin.net> Signed-off-by: Stefan Metzmacher <metze@samba.org> (This used to be ctdb commit e0c9200c05b1f7a04e002f505ebb5ba9340c0ca1)
* lib/tevent/testsuite: no longer use 'compat' symbolsStefan Metzmacher2012-06-121-12/+12
| | | | | | metze (This used to be ctdb commit 6559106b8b853920f325f2dba532f4008e931fa3)
* TEVENT: Add back tracking of long runnig events to the local copy of tevent ↵Ronnie Sahlberg2012-05-215-0/+66
| | | | | | library (This used to be ctdb commit 5aba53e6adcfcd7edbdac9e30aa5fcba176aca00)
* lib/tevent: Sync tevent from samba git treeAmitay Isaacs2012-04-1318-76/+885
| | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 483459c79884891b3639a8bb865d5e8318cde98c)
* lib/tevent: Remove the files required to build tevent as a libraryAmitay Isaacs2012-04-1323-4527/+0
| | | | | | | | | Since we are not going to build tevent library from ctdb source, remote build related files. Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit efbb7e0b9dcde547b46efd8e3b26c571e4fcf893)
* lib/tevent: Remove local modifications to teventAmitay Isaacs2012-04-135-69/+0
| | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit d1bc4a97ea649f5a07802178591688e438313ff8)
* includes: Move special tevent defines from tevent.h to includes.hAmitay Isaacs2012-04-131-11/+0
| | | | | | | | | 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)
* build: Use system tevent library if availableAmitay Isaacs2012-03-301-24/+42
| | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 2ade83de4e1f318c91489ec9a7f90d1b26f77e1b)
* Clean up warnings: -Wunused-but-set-variable in tevent_signal.cMartin Schwenke2011-11-101-4/+2
| | | | | | | | Have sent this upstream to Samba. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 080edee3d053d770466ebcc976eb1135c80feef8)
* Clean up warnings: ‘tevent_loop_allow_nesting’ is deprecatedMartin Schwenke2011-11-091-0/+7
| | | | | | | | | | CTDB wants to use these functions but Samba's tevent wants to mark them deprecated. This adds a #define to shut up the warnings and sets it in CFLAGS. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 788cdbddbc902a5b076d23473450065b551d274d)
* Drop loglevel for a tevent message from FATAL to ERRORRonnie Sahlberg2011-09-081-1/+1
| | | | | | CQ S1028400 (This used to be ctdb commit 3ce1d3d6c8b8fd3097b8efd2c75797ed7682a562)
* change Christinas previous patch to only perform the check/loggingRonnie Sahlberg2011-01-174-8/+12
| | | | | | | | if we are the main ctdb daemon. Other daemons/child processes are not guaranteed to get events on regular basis so those should not be checked. (This used to be ctdb commit ac2afe9c25753b837d5f6396020e0f3c65ef3628)
* improve timing issue detectionsChristian Ambach2011-01-176-15/+61
| | | | | | | | | | | the original "Time jumped" messages are too coarse to interpret exactly what was going wrong inside of CTDB. This patch removes the original logs and adds two other logs that differentiate between the time it took to work on an event and the time it took to get the next event. (This used to be ctdb commit fd8d54292f10b35bc4960d64cfa6843ce9aba225)
* Add back monitoring for time skips, forward as well as backward.Ronnie Sahlberg2010-09-281-0/+22
| | | | | | This serviceability tool was lost during the migration from the old eventsystem to the tevent system. (This used to be ctdb commit b4c00b4ac30ec215629f44f802ce9660abcd7a48)
* We use eventloop nesting in a couple of places, notably the syncRonnie Sahlberg2010-08-181-0/+2
| | | | | | | | parts of the recovery daemon. Initialize all event contexts to allow nesting (This used to be ctdb commit 5bf6bd5e7f33aabbeb7b9707716ef99cf471e590)
* event: Update events to latest Samba version 0.9.8Rusty Russell2010-08-1846-0/+12218
In Samba this is now called "tevent", and while we use the backwards compatibility wrappers they don't offer EVENT_FD_AUTOCLOSE: that is now a separate tevent_fd_set_auto_close() function. This is based on Samba version 7f29f817fa939ef1bbb740584f09e76e2ecd5b06. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (This used to be ctdb commit 85e5e760cc91eb3157d3a88996ce474491646726)