diff options
| author | Andrew Tridgell <tridge@samba.org> | 2007-05-04 15:33:28 +1000 |
|---|---|---|
| committer | Andrew Tridgell <tridge@samba.org> | 2007-05-04 15:33:28 +1000 |
| commit | ed3e8477856bb29c968d79791dfd351e8df0e13e (patch) | |
| tree | 69c197cf8b67ae69b8912a8bf04980fff47626c6 | |
| parent | 6bc37580825bf5d4c9f02e855d0028808c673318 (diff) | |
| download | samba-ed3e8477856bb29c968d79791dfd351e8df0e13e.tar.gz samba-ed3e8477856bb29c968d79791dfd351e8df0e13e.tar.xz samba-ed3e8477856bb29c968d79791dfd351e8df0e13e.zip | |
added a ctdb control for enabling the tdb seqnum
(This used to be ctdb commit c66920d9fb08a4a33418e2c1dcf1fc320fba3761)
| -rw-r--r-- | ctdb/common/ctdb_control.c | 10 | ||||
| -rw-r--r-- | ctdb/include/ctdb_private.h | 1 |
2 files changed, 11 insertions, 0 deletions
diff --git a/ctdb/common/ctdb_control.c b/ctdb/common/ctdb_control.c index bd52d60453..4362e95084 100644 --- a/ctdb/common/ctdb_control.c +++ b/ctdb/common/ctdb_control.c @@ -395,6 +395,16 @@ static int32_t ctdb_control_dispatch(struct ctdb_context *ctdb, 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; diff --git a/ctdb/include/ctdb_private.h b/ctdb/include/ctdb_private.h index 518df2900b..879c837430 100644 --- a/ctdb/include/ctdb_private.h +++ b/ctdb/include/ctdb_private.h @@ -282,6 +282,7 @@ enum ctdb_controls {CTDB_CONTROL_PROCESS_EXISTS, CTDB_CONTROL_TRAVERSE_DATA, CTDB_CONTROL_REGISTER_SRVID, CTDB_CONTROL_DEREGISTER_SRVID, + CTDB_CONTROL_ENABLE_SEQNUM, }; |
