fix: usr: Extract the max records by type value immediately
To improve processing efficiency, we moved the update policy rules check earlier in the sequence. To maintain the ability to verify maximum records by type, we initially kept rule match pointers. However, these pointers could become invalid if server reloading or reconfiguration occurred before update completion. To prevent this issue, extract the maximum records by type value immediately during processing.
Closes #5006
Edited by Mark Andrews