diff options
| author | Ronnie Sahlberg <sahlberg@ronnie> | 2007-05-06 04:31:22 +1000 |
|---|---|---|
| committer | Ronnie Sahlberg <sahlberg@ronnie> | 2007-05-06 04:31:22 +1000 |
| commit | 25edbc9a5094a0d74cdb3f4ebfba715a021e405a (patch) | |
| tree | 1831d9c6cb34ca8ec082206854864148487e607d /ctdb/include | |
| parent | 2e647270791d4e27b5d45213610a9a9d5d973f86 (diff) | |
add a control to get the pid of a daemon.
this makes it possible to kill a specific daemon in the recover test
script
(This used to be ctdb commit 2fa394b4c80988cb1a6d04b236ec64cc9d9e8a40)
Diffstat (limited to 'ctdb/include')
| -rw-r--r-- | ctdb/include/ctdb.h | 5 | ||||
| -rw-r--r-- | ctdb/include/ctdb_private.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/ctdb/include/ctdb.h b/ctdb/include/ctdb.h index f73d5f5142..964872d447 100644 --- a/ctdb/include/ctdb.h +++ b/ctdb/include/ctdb.h @@ -303,4 +303,9 @@ int ctdb_traverse(struct ctdb_db_context *ctdb_db, ctdb_traverse_func fn, void * int ctdb_dump_db(struct ctdb_db_context *ctdb_db, FILE *f); +/* + get the pid of a ctdb daemon + */ +int ctdb_ctrl_getpid(struct ctdb_context *ctdb, struct timeval timeout, uint32_t destnode, uint32_t *pid); + #endif diff --git a/ctdb/include/ctdb_private.h b/ctdb/include/ctdb_private.h index cd47bba863..73767b292a 100644 --- a/ctdb/include/ctdb_private.h +++ b/ctdb/include/ctdb_private.h @@ -312,6 +312,7 @@ enum ctdb_controls {CTDB_CONTROL_PROCESS_EXISTS, CTDB_CONTROL_UPDATE_SEQNUM, CTDB_CONTROL_SET_SEQNUM_FREQUENCY, CTDB_CONTROL_DUMP_MEMORY, + CTDB_CONTROL_GET_PID, }; |
