Rev 249: added a ctdb control for enabling the tdb seqnum in
http://samba.org/~tridge/ctdb
tridge at samba.org
tridge at samba.org
Fri May 4 05:33:29 GMT 2007
------------------------------------------------------------
revno: 249
revision-id: tridge at samba.org-20070504053328-94qersgg4p3pmr1r
parent: tridge at samba.org-20070504052910-297ykux8e77ka6p0
committer: Andrew Tridgell <tridge at samba.org>
branch nick: tridge
timestamp: Fri 2007-05-04 15:33:28 +1000
message:
added a ctdb control for enabling the tdb seqnum
modified:
common/ctdb_control.c ctdb_control.c-20070426122724-j6gkpiofhbwdin63-1
include/ctdb_private.h ctdb_private.h-20061117234101-o3qt14umlg9en8z0-13
=== modified file 'common/ctdb_control.c'
--- a/common/ctdb_control.c 2007-05-04 01:41:29 +0000
+++ b/common/ctdb_control.c 2007-05-04 05:33:28 +0000
@@ -395,6 +395,16 @@
case CTDB_CONTROL_DEREGISTER_SRVID:
return daemon_deregister_message_handler(ctdb, client_id, srvid);
+ case CTDB_CONTROL_ENABLE_SEQNUM: {
+ uint32_t db_id;
+ struct ctdb_db_context *ctdb_db;
+ CHECK_CONTROL_DATA_SIZE(sizeof(db_id));
+ ctdb_db = find_ctdb_db(ctdb, db_id);
+ if (!ctdb_db) return -1;
+ tdb_enable_seqnum(ctdb_db->ltdb->tdb);
+ return 0;
+ }
+
default:
DEBUG(0,(__location__ " Unknown CTDB control opcode %u\n", opcode));
return -1;
=== modified file 'include/ctdb_private.h'
--- a/include/ctdb_private.h 2007-05-04 01:41:29 +0000
+++ b/include/ctdb_private.h 2007-05-04 05:33:28 +0000
@@ -282,6 +282,7 @@
CTDB_CONTROL_TRAVERSE_DATA,
CTDB_CONTROL_REGISTER_SRVID,
CTDB_CONTROL_DEREGISTER_SRVID,
+ CTDB_CONTROL_ENABLE_SEQNUM,
};
More information about the samba-cvs
mailing list