Skip to content

Commit e1fb9a4

Browse files
committed
MEDIUM: stats-file: silently ignore be/fe mistmatch
Most of the invalid or unknow field in the stats-file parser are ignored silently, which is not the case of the frontend/backend mismatch on a guid, which is kind of strange. Since this is ""documented"" to be ignored in the reg-tests/stats/sample-stats-file file, let's also ignore this kind of line. This will allow to run the associated reg-test with -dW.
1 parent 5a29fd6 commit e1fb9a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/stats-file.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,13 +279,13 @@ static int parse_stat_line(struct ist line,
279279

280280
if (domain == STFILE_DOMAIN_PX_FE) {
281281
if (!(px->cap & PR_CAP_FE))
282-
goto err;
282+
return 0; /* silently ignored fe/be mismatch */
283283
base_off = (char *)&px->fe_counters;
284284
off = 0;
285285
}
286286
else if (domain == STFILE_DOMAIN_PX_BE) {
287287
if (!(px->cap & PR_CAP_BE))
288-
goto err;
288+
return 0; /* silently ignored fe/be mismatch */
289289
base_off = (char *)&px->be_counters;
290290
off = 1;
291291
}

0 commit comments

Comments
 (0)