stream-restore: Drop the version field from the entry struct
authorTanu Kaskinen <tanuk@iki.fi>
Tue, 26 May 2020 11:45:12 +0000 (14:45 +0300)
committerGeorg Chini <georg@chini.tk>
Mon, 1 Jun 2020 18:24:16 +0000 (18:24 +0000)
commit46c263acc976a9615a322cff5ead41928c68e6ce
tree09423cc2de54b1aefaf358e0657903e72e265cd6
parent3dc525df5de96c744d523d674a1a453d829e9d78
stream-restore: Drop the version field from the entry struct

Storing the version in the entry struct is pointless. We should always
write entries using the current version. When we encounter older
versions when reading, those need to be converted to the current version
anyway, because all code that uses the entry struct assumes that the
data is stored according to the current version semantics.

We're currently at the first version of the database entries, so
currently there's no version conversion happening. I have a patch that
will increment the entry version, so this is preparation for that.
src/modules/module-stream-restore.c