mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
ctdb-recoverd: Rename update_local_flags() -> update_flags()
This also updates remote flags so the name is misleading. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14466 Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
parent
702c7c4934
commit
4aa8e72d60
@ -541,9 +541,9 @@ static void ctdb_wait_election(struct ctdb_recoverd *rec)
|
|||||||
* flags changes to all nodes. This is only run by the recovery
|
* flags changes to all nodes. This is only run by the recovery
|
||||||
* master.
|
* master.
|
||||||
*/
|
*/
|
||||||
static int update_local_flags(struct ctdb_recoverd *rec,
|
static int update_flags(struct ctdb_recoverd *rec,
|
||||||
struct ctdb_node_map_old *nodemap,
|
struct ctdb_node_map_old *nodemap,
|
||||||
struct ctdb_node_map_old **remote_nodemaps)
|
struct ctdb_node_map_old **remote_nodemaps)
|
||||||
{
|
{
|
||||||
unsigned int j;
|
unsigned int j;
|
||||||
struct ctdb_context *ctdb = rec->ctdb;
|
struct ctdb_context *ctdb = rec->ctdb;
|
||||||
@ -2554,10 +2554,10 @@ static void main_loop(struct ctdb_context *ctdb, struct ctdb_recoverd *rec,
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ensure our local copies of flags are right */
|
/* Ensure our local and remote flags are correct */
|
||||||
ret = update_local_flags(rec, nodemap, remote_nodemaps);
|
ret = update_flags(rec, nodemap, remote_nodemaps);
|
||||||
if (ret != 0) {
|
if (ret != 0) {
|
||||||
DEBUG(DEBUG_ERR,("Unable to update local flags\n"));
|
D_ERR("Unable to update flags\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user