|
|
304ab4 |
commit 343aef25472baa74c3a4669cf86b670d93d41dcb
|
|
|
304ab4 |
Author: Nathan Scott <nathans@redhat.com>
|
|
|
304ab4 |
Date: Tue Nov 23 16:11:24 2021 +1100
|
|
|
304ab4 |
|
|
|
304ab4 |
pmlogconf: fix reprobing with interactive changes
|
|
|
304ab4 |
|
|
|
304ab4 |
In testing an earlier persistance fix it was discovered
|
|
|
304ab4 |
that reprobe was inadvertently overwriting user requests
|
|
|
304ab4 |
for changes interactively.
|
|
|
304ab4 |
|
|
|
304ab4 |
Related to Red Hat BZ #2017632
|
|
|
304ab4 |
|
|
|
304ab4 |
diff --git a/qa/368.out b/qa/368.out
|
|
|
304ab4 |
index 829162f859..179a1142cf 100644
|
|
|
304ab4 |
--- a/qa/368.out
|
|
|
304ab4 |
+++ b/qa/368.out
|
|
|
304ab4 |
@@ -80,44 +80,10 @@ Differences ...
|
|
|
304ab4 |
Keep changes? [y]
|
|
|
304ab4 |
Group: qa group one
|
|
|
304ab4 |
Log this group? [y] ...
|
|
|
304ab4 |
-Differences ...
|
|
|
304ab4 |
-*** TMP.orig ...
|
|
|
304ab4 |
---- TMP.conf.new ...
|
|
|
304ab4 |
-***************
|
|
|
304ab4 |
-*** 22,35 ****
|
|
|
304ab4 |
- sample.long.million
|
|
|
304ab4 |
- }
|
|
|
304ab4 |
- #----
|
|
|
304ab4 |
-! #+ 02:x::
|
|
|
304ab4 |
-! #----
|
|
|
304ab4 |
-! #+ 03:y:default:
|
|
|
304ab4 |
-! ## qa group three
|
|
|
304ab4 |
- log advisory on default {
|
|
|
304ab4 |
-! sample.longlong.ten
|
|
|
304ab4 |
- }
|
|
|
304ab4 |
- #----
|
|
|
304ab4 |
- #+ 04:n:default:
|
|
|
304ab4 |
- ## qa group four
|
|
|
304ab4 |
- #----
|
|
|
304ab4 |
---- 22,36 ----
|
|
|
304ab4 |
- sample.long.million
|
|
|
304ab4 |
- }
|
|
|
304ab4 |
- #----
|
|
|
304ab4 |
-! #+ 02:y:default:
|
|
|
304ab4 |
-! ## qa group two
|
|
|
304ab4 |
- log advisory on default {
|
|
|
304ab4 |
-! sample.ulong.ten
|
|
|
304ab4 |
- }
|
|
|
304ab4 |
- #----
|
|
|
304ab4 |
-+ #+ 03:n:default:
|
|
|
304ab4 |
-+ ## qa group three
|
|
|
304ab4 |
-+ #----
|
|
|
304ab4 |
- #+ 04:n:default:
|
|
|
304ab4 |
- ## qa group four
|
|
|
304ab4 |
- #----
|
|
|
304ab4 |
-Keep changes? [y]
|
|
|
304ab4 |
+No changes
|
|
|
304ab4 |
+
|
|
|
304ab4 |
Group: qa group one
|
|
|
304ab4 |
-Log this group? [y] ......
|
|
|
304ab4 |
+Log this group? [y] .....
|
|
|
304ab4 |
Differences ...
|
|
|
304ab4 |
*** TMP.orig ...
|
|
|
304ab4 |
--- TMP.conf.new ...
|
|
|
304ab4 |
@@ -132,18 +98,8 @@ Differences ...
|
|
|
304ab4 |
#----
|
|
|
304ab4 |
--- 18,23 ----
|
|
|
304ab4 |
***************
|
|
|
304ab4 |
-*** 26,31 ****
|
|
|
304ab4 |
---- 25,31 ----
|
|
|
304ab4 |
- ## qa group two
|
|
|
304ab4 |
- log advisory on default {
|
|
|
304ab4 |
- sample.ulong.ten
|
|
|
304ab4 |
-+ sample.ulong.million
|
|
|
304ab4 |
- }
|
|
|
304ab4 |
- #----
|
|
|
304ab4 |
- #+ 03:n:default:
|
|
|
304ab4 |
-***************
|
|
|
304ab4 |
-*** 37,42 ****
|
|
|
304ab4 |
---- 37,53 ----
|
|
|
304ab4 |
+*** 36,41 ****
|
|
|
304ab4 |
+--- 35,51 ----
|
|
|
304ab4 |
#+ 05:n:default:
|
|
|
304ab4 |
## qa group five
|
|
|
304ab4 |
#----
|
|
|
304ab4 |
@@ -185,15 +141,13 @@ log advisory on default {
|
|
|
304ab4 |
sample.long.million
|
|
|
304ab4 |
}
|
|
|
304ab4 |
#----
|
|
|
304ab4 |
-#+ 02:y:default:
|
|
|
304ab4 |
-## qa group two
|
|
|
304ab4 |
-log advisory on default {
|
|
|
304ab4 |
- sample.ulong.ten
|
|
|
304ab4 |
- sample.ulong.million
|
|
|
304ab4 |
-}
|
|
|
304ab4 |
+#+ 02:x::
|
|
|
304ab4 |
#----
|
|
|
304ab4 |
-#+ 03:n:default:
|
|
|
304ab4 |
+#+ 03:y:default:
|
|
|
304ab4 |
## qa group three
|
|
|
304ab4 |
+log advisory on default {
|
|
|
304ab4 |
+ sample.longlong.ten
|
|
|
304ab4 |
+}
|
|
|
304ab4 |
#----
|
|
|
304ab4 |
#+ 04:n:default:
|
|
|
304ab4 |
## qa group four
|
|
|
304ab4 |
diff --git a/src/pmlogconf/pmlogconf.c b/src/pmlogconf/pmlogconf.c
|
|
|
304ab4 |
index c03c61e797..fa1156859d 100644
|
|
|
304ab4 |
--- a/src/pmlogconf/pmlogconf.c
|
|
|
304ab4 |
+++ b/src/pmlogconf/pmlogconf.c
|
|
|
304ab4 |
@@ -913,13 +913,13 @@ evaluate_state(group_t *group)
|
|
|
304ab4 |
if ((group->pmlogger || group->pmrep) && !group->pmlogconf) {
|
|
|
304ab4 |
state = group->saved_state;
|
|
|
304ab4 |
} else if (evaluate_group(group)) { /* probe */
|
|
|
304ab4 |
- if (reprobe == 0 && group->saved_state != 0)
|
|
|
304ab4 |
+ if (group->saved_state != 0)
|
|
|
304ab4 |
state = group->saved_state;
|
|
|
304ab4 |
else
|
|
|
304ab4 |
state = group->true_state;
|
|
|
304ab4 |
group->success = 1;
|
|
|
304ab4 |
} else {
|
|
|
304ab4 |
- if (reprobe == 0 && group->saved_state != 0)
|
|
|
304ab4 |
+ if (group->saved_state != 0)
|
|
|
304ab4 |
state = group->saved_state;
|
|
|
304ab4 |
else
|
|
|
304ab4 |
state = group->false_state;
|