Skip to content

Commit 33e28dc

Browse files
author
Ken Gaillot
authored
Merge pull request #1955 from kgaillot/fixes
Miscellaneous unrelated small changes
2 parents 92b0c1d + dec3263 commit 33e28dc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+1155
-702
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,6 @@ publican.cfg
138138
/doc/HTML
139139
/doc/abi_dumps
140140
/doc/abi-check
141-
/doc/acls.html
142141
/doc/api/*
143142
/doc/compat_reports
144143
/doc/crm_fencing.html
@@ -213,6 +212,7 @@ pacemaker-[a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9]
213212
/cts/HBDummy
214213
/doc/Clusters_from_Scratch.txt
215214
/doc/Pacemaker_Explained.txt
215+
/doc/acls.html
216216
/fencing
217217
/lrmd
218218
/mcp

configure.ac

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1885,8 +1885,6 @@ CFLAGS_COPY="$CFLAGS"
18851885
AC_SUBST(CFLAGS_COPY)
18861886

18871887
AC_SUBST(LIBADD_DL) dnl extra flags for dynamic linking libraries
1888-
AC_SUBST(LIBADD_INTL) dnl extra flags for GNU gettext stuff...
1889-
18901888
AC_SUBST(LOCALE)
18911889

18921890
dnl Options for cleaning up the compiler output

daemons/controld/controld_execd.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -762,9 +762,7 @@ is_rsc_active(lrm_state_t * lrm_state, const char *rsc_id)
762762

763763
} else if (entry->last->rc == PCMK_OCF_OK
764764
&& safe_str_eq(entry->last->op_type, CRMD_ACTION_MIGRATE)) {
765-
/* a stricter check is too complex...
766-
* leave that to the PE
767-
*/
765+
// A stricter check is too complex ... leave that to the scheduler
768766
return FALSE;
769767

770768
} else if (entry->last->rc == PCMK_OCF_NOT_RUNNING) {

daemons/controld/controld_fencing.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ tengine_stonith_notify(stonith_t *st, stonith_event_t *st_event)
530530
* Unfortunately, the controller doesn't have a simple, reliable way
531531
* to map hosts to guests. It might be possible to track this in the
532532
* peer cache via crm_remote_peer_cache_refresh(). For now, we rely
533-
* on the PE creating fence pseudo-events for the guests.
533+
* on the scheduler creating fence pseudo-events for the guests.
534534
*/
535535

536536
if (st_event->client_origin

daemons/controld/controld_fsa.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ s_crmd_fsa_actions(fsa_data_t * fsa_data)
397397
/*
398398
* Low(er) priority actions
399399
* Make sure the CIB is always updated before invoking the
400-
* PE, and the PE before the TE
400+
* scheduler, and the scheduler before the transition engine.
401401
*/
402402
} else if (fsa_actions & A_TE_HALT) {
403403
do_fsa_action(fsa_data, A_TE_HALT, do_te_invoke);

daemons/controld/controld_join_dc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,8 +261,8 @@ do_dc_join_offer_one(long long action,
261261
join_make_offer(NULL, member, NULL);
262262
}
263263

264-
/* this was a genuine join request, cancel any existing
265-
* transition and invoke the PE
264+
/* This was a genuine join request; cancel any existing transition and
265+
* invoke the scheduler.
266266
*/
267267
abort_transition(INFINITY, tg_restart, "Node join", NULL);
268268

daemons/controld/controld_schedulerd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ pe_subsystem_new()
164164

165165
/*!
166166
* \internal
167-
* \brief Send an XML message to the PE
167+
* \brief Send an XML message to the scheduler
168168
*
169169
* \param[in] cmd XML message to send
170170
*

daemons/fenced/fenced_commands.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1962,7 +1962,7 @@ stonith_query(xmlNode * msg, const char *remote_peer, const char *client_id, int
19621962
const char *action = NULL;
19631963
const char *target = NULL;
19641964
int timeout = 0;
1965-
xmlNode *dev = get_xpath_object("//@" F_STONITH_ACTION, msg, LOG_TRACE);
1965+
xmlNode *dev = get_xpath_object("//@" F_STONITH_ACTION, msg, LOG_NEVER);
19661966

19671967
crm_element_value_int(msg, F_STONITH_TIMEOUT, &timeout);
19681968
if (dev) {
@@ -2703,7 +2703,7 @@ stonith_command(crm_client_t * client, uint32_t id, uint32_t flags, xmlNode * re
27032703
*/
27042704
char *op = crm_element_value_copy(request, F_STONITH_OPERATION);
27052705

2706-
if (get_xpath_object("//" T_STONITH_REPLY, request, LOG_TRACE)) {
2706+
if (get_xpath_object("//" T_STONITH_REPLY, request, LOG_NEVER)) {
27072707
is_reply = TRUE;
27082708
}
27092709

daemons/fenced/fenced_history.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
/*
2-
* Copyright 2009-2018 Andrew Beekhof <andrew@beekhof.net>
2+
* Copyright 2009-2019 the Pacemaker project contributors
3+
*
4+
* The version control history for this file may have further details.
35
*
46
* This source code is licensed under the GNU General Public License version 2
57
* or later (GPLv2+) WITHOUT ANY WARRANTY.
@@ -398,7 +400,7 @@ stonith_fence_history(xmlNode *msg, xmlNode **output,
398400
{
399401
int rc = 0;
400402
const char *target = NULL;
401-
xmlNode *dev = get_xpath_object("//@" F_STONITH_TARGET, msg, LOG_TRACE);
403+
xmlNode *dev = get_xpath_object("//@" F_STONITH_TARGET, msg, LOG_NEVER);
402404
xmlNode *out_history = NULL;
403405

404406
if (dev) {
@@ -439,8 +441,8 @@ stonith_fence_history(xmlNode *msg, xmlNode **output,
439441
NULL);
440442
} else if (remote_peer &&
441443
!safe_str_eq(remote_peer, stonith_our_uname)) {
442-
xmlNode *history =
443-
get_xpath_object("//" F_STONITH_HISTORY_LIST, msg, LOG_TRACE);
444+
xmlNode *history = get_xpath_object("//" F_STONITH_HISTORY_LIST,
445+
msg, LOG_NEVER);
444446
GHashTable *received_history =
445447
history?stonith_xml_history_to_list(history):NULL;
446448

daemons/fenced/fenced_remote.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,8 @@ remote_op_done(remote_fencing_op_t * op, xmlNode * data, int rc, int dup)
496496
}
497497

498498
if (!op->delegate && data && rc != -ENODEV && rc != -EHOSTUNREACH) {
499-
xmlNode *ndata = get_xpath_object("//@" F_STONITH_DELEGATE, data, LOG_TRACE);
499+
xmlNode *ndata = get_xpath_object("//@" F_STONITH_DELEGATE, data,
500+
LOG_NEVER);
500501
if(ndata) {
501502
op->delegate = crm_element_value_copy(ndata, F_STONITH_DELEGATE);
502503
} else {
@@ -963,7 +964,7 @@ void *
963964
create_remote_stonith_op(const char *client, xmlNode * request, gboolean peer)
964965
{
965966
remote_fencing_op_t *op = NULL;
966-
xmlNode *dev = get_xpath_object("//@" F_STONITH_TARGET, request, LOG_TRACE);
967+
xmlNode *dev = get_xpath_object("//@" F_STONITH_TARGET, request, LOG_NEVER);
967968
int call_options = 0;
968969

969970
init_stonith_remote_op_hash_table(&stonith_remote_op_list);

0 commit comments

Comments
 (0)