diff options
| author | Ronnie Sahlberg <ronniesahlberg@gmail.com> | 2009-10-10 15:04:18 +1100 |
|---|---|---|
| committer | Ronnie Sahlberg <ronniesahlberg@gmail.com> | 2009-10-10 15:04:18 +1100 |
| commit | 3219f81710da86de1bf500c451cfb1fa673cee06 (patch) | |
| tree | d81a233fe802b5575a498d06342fcb6e636c7553 /ctdb/include | |
| parent | 6cf7d8e131738c9da56b28b6b09fe8800ae8deb2 (diff) | |
add a control to read the db priority from a database
(This used to be ctdb commit ca6d045e419f308f57e74d4c978907afb05ddb85)
Diffstat (limited to 'ctdb/include')
| -rw-r--r-- | ctdb/include/ctdb.h | 1 | ||||
| -rw-r--r-- | ctdb/include/ctdb_private.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/ctdb/include/ctdb.h b/ctdb/include/ctdb.h index 4786176de0..839d581327 100644 --- a/ctdb/include/ctdb.h +++ b/ctdb/include/ctdb.h @@ -680,5 +680,6 @@ struct ctdb_db_priority { }; int ctdb_ctrl_set_db_priority(struct ctdb_context *ctdb, struct timeval timeout, uint32_t destnode, struct ctdb_db_priority *db_prio); +int ctdb_ctrl_get_db_priority(struct ctdb_context *ctdb, struct timeval timeout, uint32_t destnode, uint32_t db_id, uint32_t *priority); #endif diff --git a/ctdb/include/ctdb_private.h b/ctdb/include/ctdb_private.h index 5a72a468bc..d5f44995de 100644 --- a/ctdb/include/ctdb_private.h +++ b/ctdb/include/ctdb_private.h @@ -597,6 +597,7 @@ enum ctdb_controls {CTDB_CONTROL_PROCESS_EXISTS = 0, CTDB_CONTROL_SET_BAN_STATE = 109, CTDB_CONTROL_GET_BAN_STATE = 110, CTDB_CONTROL_SET_DB_PRIORITY = 111, + CTDB_CONTROL_GET_DB_PRIORITY = 112, }; /* |
