jbrzusto / find_tags

search raw data streams for patterns from registered tags
GNU General Public License v2.0
2 stars 0 forks source link

save a serialization version number in blobs so that we never resume from wrong state #60

Closed jbrzusto closed 6 years ago

jbrzusto commented 6 years ago

This safeguard is long-overdue.

jbrzusto commented 6 years ago

and is built into boost::serialization, so what took me so long?!

jbrzusto commented 6 years ago

Reopening because I failed to read the boost::serialization docs properly: the version parameter doesn't do anything except get passed to serialize methods of classes. It's up to the Tag_Foray::resume() to actually notice (and fail gracefully) on an incompatible version.

jbrzusto commented 6 years ago

Fix

We'll distinguish between minor and major serialization versions:

jbrzusto commented 6 years ago

this is done now.