From 8ac2c871563fefc07e757c099ae35a82a00148db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89rico=20Nogueira?= Date: Tue, 7 Jan 2025 19:47:50 -0300 Subject: [PATCH] Post monitors from compress record when resetting it This way clients receive updates with an empty array after writing into the RES field. --- documentation/RELEASE_NOTES.md | 5 +++++ modules/database/src/std/rec/compressRecord.c | 1 + 2 files changed, 6 insertions(+) diff --git a/documentation/RELEASE_NOTES.md b/documentation/RELEASE_NOTES.md index 48623d7f8..ce4088385 100644 --- a/documentation/RELEASE_NOTES.md +++ b/documentation/RELEASE_NOTES.md @@ -22,6 +22,11 @@ should also be read to understand what has changed since earlier releases: ## Changes made on the 7.0 branch since 7.0.8.1 +### Post monitors from compress record when it's reset + +Writing into a compress record's `RES` field now posts a monitor event instead +of only changing `VAL`. Monitor clients will therefore receive an empty array. + ### The AMSG error message propagates through MSS links A database link with the MSS attribute will now propagate not only SEVR and diff --git a/modules/database/src/std/rec/compressRecord.c b/modules/database/src/std/rec/compressRecord.c index 22e804915..844172bf8 100644 --- a/modules/database/src/std/rec/compressRecord.c +++ b/modules/database/src/std/rec/compressRecord.c @@ -384,6 +384,7 @@ static long special(DBADDR *paddr, int after) if (special_type == SPC_RESET) { reset(prec); + monitor(prec); return 0; }