epics-modules / autosave

APS BCDA synApps module: autosave
https://epics-modules.github.io/autosave/
Other
8 stars 31 forks source link

autosaveBuild silently fails to include a req file if requestFileCmd is too long #32

Closed kmpeters closed 4 years ago

kmpeters commented 4 years ago

If a database with too many macros is loaded, autosaveBuild (myDbLoadRecordsHook specifically) can silently fail to include the associated request file in the built_*.req files that are generated.

This is the line of code that determines whether or not requestFileCmd is too long: https://github.com/epics-modules/autosave/blob/1fb6ea5e6255d0215cf9cceec7682f78d8426f47/asApp/src/dbrestore.c#L1643

A message should be printed when requestFileCmd is too long so that users have some idea why autosaveBuild works for some databases but not others.