[SCM] CTDB repository - branch 1.2-readonly-delegations-test updated - ctdb-1.9.1-472-ga1907a0

Ronnie Sahlberg sahlberg at samba.org
Wed Aug 17 00:29:47 MDT 2011


The branch, 1.2-readonly-delegations-test has been updated
       via  a1907a04a85c31b9a886d0d6303b112898e925f7 (commit)
      from  fc377108941e8a69aa0ec028fdb8418b080404f3 (commit)

http://gitweb.samba.org/?p=ctdb.git;a=shortlog;h=1.2-readonly-delegations-test


- Log -----------------------------------------------------------------
commit a1907a04a85c31b9a886d0d6303b112898e925f7
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Wed Aug 17 16:14:57 2011 +1000

    ReadOnly: clear out the tracking record once a revoke is completed

-----------------------------------------------------------------------

Summary of changes:
 server/ctdb_call.c   |    4 ++++
 server/ctdb_daemon.c |    4 ++++
 2 files changed, 8 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/server/ctdb_call.c b/server/ctdb_call.c
index ba4e7d3..4415443 100644
--- a/server/ctdb_call.c
+++ b/server/ctdb_call.c
@@ -516,6 +516,10 @@ void ctdb_request_call(struct ctdb_context *ctdb, struct ctdb_req_header *hdr)
 		if (ctdb_ltdb_store(ctdb_db, call->key, &header, data) != 0) {
 			ctdb_fatal(ctdb, "Failed to write header with cleared REVOKE flag");
 		}
+		/* and clear out the tracking data */
+		if (tdb_delete(ctdb_db->rottdb, call->key) != 0) {
+			DEBUG(DEBUG_ERR,(__location__ " Failed to clear out trackingdb record\n"));
+		}
 	}
 
 	/* if we are revoking, we must defer all other calls until the revoke
diff --git a/server/ctdb_daemon.c b/server/ctdb_daemon.c
index 903033d..b3bb3c0 100644
--- a/server/ctdb_daemon.c
+++ b/server/ctdb_daemon.c
@@ -434,6 +434,10 @@ static void daemon_request_call_from_client(struct ctdb_client *client,
 		if (ctdb_ltdb_store(ctdb_db, key, &header, data) != 0) {
 			ctdb_fatal(ctdb, "Failed to write header with cleared REVOKE flag");
 		}
+		/* and clear out the tracking data */
+		if (tdb_delete(ctdb_db->rottdb, key) != 0) {
+			DEBUG(DEBUG_ERR,(__location__ " Failed to clear out trackingdb record\n"));
+		}
 	}
 
 	/* if we are revoking, we must defer all other calls until the revoke


-- 
CTDB repository


More information about the samba-cvs mailing list