1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

added a control to get the local vnn

(This used to be ctdb commit 0b109f574b710f290372512d0694290ea7cd4368)
This commit is contained in:
Andrew Tridgell 2007-05-15 10:17:16 +10:00
parent 38491de84f
commit c6afe22b92
2 changed files with 6 additions and 4 deletions

View File

@ -132,13 +132,14 @@ static int32_t ctdb_control_dispatch(struct ctdb_context *ctdb,
return 0;
}
case CTDB_CONTROL_GET_RECMASTER: {
case CTDB_CONTROL_GET_RECMASTER:
return ctdb->recovery_master;
}
case CTDB_CONTROL_GET_PID: {
case CTDB_CONTROL_GET_PID:
return getpid();
}
case CTDB_CONTROL_GET_VNN:
return ctdb->vnn;
case CTDB_CONTROL_CONFIG: {
CHECK_CONTROL_DATA_SIZE(0);

View File

@ -352,6 +352,7 @@ enum ctdb_controls {CTDB_CONTROL_PROCESS_EXISTS,
CTDB_CONTROL_SET_RECMASTER,
CTDB_CONTROL_FREEZE,
CTDB_CONTROL_THAW,
CTDB_CONTROL_GET_VNN,
};