]> git.tuebingen.mpg.de Git - paraslash.git/commit
Add para_upgrade_db.
authorAndre Noll <maan@tuebingen.mpg.de>
Fri, 6 Mar 2020 13:26:39 +0000 (14:26 +0100)
committerAndre Noll <maan@tuebingen.mpg.de>
Thu, 21 Oct 2021 17:52:40 +0000 (19:52 +0200)
commit56e54c8c75d59a8e5072451941aa56c727d99d26
treec4b43e61326a872c2ba7fa3923af44496a6d50a2
parentb92a1de60b4988ba966b16948e9a331a0ac35e60
Add para_upgrade_db.

This new executable is required to convert existing paraslash databases
to the new format. Only the layout of the audio file table changes
due to the switch from sha1 to sha256. The command creates and opens
a new audio file table and copies over each row, using an arbitrary
(incorrect) hash value for the values in hash column of the destination
table.

After all rows have been copied in this way, the old table is deleted
and the database directory is renamed from afs-database-0.4 to
afs-database-0.7, which will be the default path in paraslash-0.7.

Subsequent patches will modify para_server to load the database
from the new path and use sha256 instead of sha1 for the hash that
identifies the audio file. The user must then start the thusly patched
para_server and force-add all audio files to correct the hashes. This
approach keeps para_upgrade_db minimal and shortens its running time.
Makefile.in
Makefile.real
configure.ac
m4/lls/upgrade_db.suite.m4 [new file with mode: 0644]
upgrade_db.c [new file with mode: 0644]