Skip to content

Commit b7cc33c

Browse files
dirk-zimochanjohnson
authored andcommitted
Send DBE_PROPERTY events before DBE_VALUE | DBE_LOG events to allow clients to update their formatting etc in time
1 parent 9e7cd24 commit b7cc33c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

modules/database/src/ioc/db/dbAccess.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1390,6 +1390,11 @@ long dbPut(DBADDR *paddr, short dbrType,
13901390
}
13911391
}
13921392

1393+
/* Post property updates before second dbPutSpecial */
1394+
/* which may post DBE_VALUE and/or DBE_LOG events */
1395+
if (propertyUpdate && !status)
1396+
db_post_events(precord, NULL, DBE_PROPERTY);
1397+
13931398
/* Always do special processing if needed */
13941399
if (special) {
13951400
long status2 = dbPutSpecial(paddr, 1);
@@ -1406,8 +1411,6 @@ long dbPut(DBADDR *paddr, short dbrType,
14061411
if (precord->mlis.count &&
14071412
!(isValueField && pfldDes->process_passive))
14081413
db_post_events(precord, pfieldsave, DBE_VALUE | DBE_LOG);
1409-
if (propertyUpdate)
1410-
db_post_events(precord, NULL, DBE_PROPERTY);
14111414
done:
14121415
paddr->pfield = pfieldsave;
14131416
return status;

0 commit comments

Comments
 (0)