[SCM] CTDB repository - branch 1.3 updated - ctdb-1.9.1-406-g4676c49
Ronnie Sahlberg
sahlberg at samba.org
Tue Mar 15 23:06:23 MDT 2011
The branch, 1.3 has been updated
via 4676c4926b48287908ebcc8e3a8c717a744aa48d (commit)
from 71fd639a730b8e643d9d4aef45154a110a3f9b0e (commit)
http://gitweb.samba.org/?p=ctdb.git;a=shortlog;h=1.3
- Log -----------------------------------------------------------------
commit 4676c4926b48287908ebcc8e3a8c717a744aa48d
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date: Wed Mar 16 14:55:58 2011 +1100
Deferred attach: create the timed event as a child context of the da context we want to delete.
Othwervise the da context can be timed out and talloc_free()d
but the event for this already freed object will still trigger,
causing a talloc error and shutdown.
CQ S1022515
-----------------------------------------------------------------------
Summary of changes:
server/ctdb_ltdb_server.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
Changeset truncated at 500 lines:
diff --git a/server/ctdb_ltdb_server.c b/server/ctdb_ltdb_server.c
index fe061e7..a93e2fa 100644
--- a/server/ctdb_ltdb_server.c
+++ b/server/ctdb_ltdb_server.c
@@ -990,7 +990,7 @@ int ctdb_process_deferred_attach(struct ctdb_context *ctdb)
*/
while ((da_ctx = ctdb->deferred_attach) != NULL) {
DLIST_REMOVE(ctdb->deferred_attach, da_ctx);
- event_add_timed(ctdb->ev, ctdb, timeval_current_ofs(1,0), ctdb_deferred_attach_callback, da_ctx);
+ event_add_timed(ctdb->ev, da_ctx, timeval_current_ofs(1,0), ctdb_deferred_attach_callback, da_ctx);
}
return 0;
--
CTDB repository
More information about the samba-cvs
mailing list