summaryrefslogtreecommitdiff
path: root/ctdb/server/ctdb_persistent.c
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronniesahlberg@gmail.com>2009-10-29 10:37:10 +1100
committerRonnie Sahlberg <ronniesahlberg@gmail.com>2009-10-29 10:37:10 +1100
commit279b7ca56402e871ae5ee5c0a9d590f606f68928 (patch)
tree6ee5bc09bf260f477fdafa32c5f2a9163036e035 /ctdb/server/ctdb_persistent.c
parent2419eab0d97cce9454d2b5c51ef2c52479f95c50 (diff)
downloadsamba-279b7ca56402e871ae5ee5c0a9d590f606f68928.tar.gz
update the "uptime" command to indicate the "time since last" is the time since the last recovery OR failover.
(This used to be ctdb commit 3b0d44497800a16400d05a30bdaf6e6c285d4b36)
Diffstat (limited to 'ctdb/server/ctdb_persistent.c')
-rw-r--r--ctdb/server/ctdb_persistent.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/ctdb/server/ctdb_persistent.c b/ctdb/server/ctdb_persistent.c
index 3c51742b1c2..cb77bf092d1 100644
--- a/ctdb/server/ctdb_persistent.c
+++ b/ctdb/server/ctdb_persistent.c
@@ -604,26 +604,6 @@ int32_t ctdb_control_trans2_error(struct ctdb_context *ctdb,
return 0;
}
-/**
- * Tell whether a transaction is active on this node on the give DB.
- */
-int32_t ctdb_control_trans2_active(struct ctdb_context *ctdb,
- uint32_t db_id)
-{
- struct ctdb_db_context *ctdb_db;
-
- ctdb_db = find_ctdb_db(ctdb, db_id);
- if (!ctdb_db) {
- DEBUG(DEBUG_ERR,(__location__ " Unknown db 0x%08x\n", db_id));
- return -1;
- }
-
- if (ctdb_db->transaction_active) {
- return 1;
- } else {
- return 0;
- }
-}
/*
backwards compatibility: