diff options
author | JackLivio <jack@livio.io> | 2016-04-26 14:16:20 -0400 |
---|---|---|
committer | JackLivio <jack@livio.io> | 2016-04-26 14:16:20 -0400 |
commit | e0fda2c1b4c3bbefd7770b153250087ab35fe9b8 (patch) | |
tree | 020ef371177f5d645d080492bebdde75e9adcb87 /cmake | |
parent | dd1bb4b463894c2d78dedbd16b13dabbe41559e9 (diff) | |
download | sdl_core-hotfix/generate_snapshot_fix_#461.tar.gz |
Rewrite GenerateSnapshot()hotfix/generate_snapshot_fix_#461
This pr is to fix issue #461. SDL core was crashing due to the snapshot returned from CacheManager::GenerateSnapshot() was being ruled as invalid.
When generating a snapshot, instead of copying the entire contents of the policy table, I copy all contents except for the messages in consumer friendly messages. Policy table snapshot are not supposed to include the actual messages in consumer friendly messages, just the version number of the messages.
I also added an extra condition in ConsumerFriendlyMessages::Validate() that looks to see if messages is initialized. A pt snapshot can have a consumer friendly messages portion, just not the messages included in consumer fiendly messages.
Diffstat (limited to 'cmake')
0 files changed, 0 insertions, 0 deletions