Commit 3b938be2 authored by Per Cederqvist's avatar Per Cederqvist

Keep an extra copy of the database, just in case. Do some sanity

checking when copying file contents.  Allow compaction of the text
file even if there are errors in the data base.
parent 085e2eeb
1998-10-11 Per Cederqvist <ceder@lysator.liu.se>
Keep an extra copy of the database, just in case. Do some sanity
checking when copying file contents.
* src/server/simple-cache.c (pre_sync): Store the previous backup
file.
(copy_file): Abort if we cannot seek or read the file we copy
from. Abort if the value we read didn't end in a newline, start
with "T ", "C " or "P ", if the identity number in the data isn't
what we expected, or if it isn't followed by a space. This
change attempts to detect file damage as early as possible.
* src/server/server-config.c (parameters): Added "Backup file 2".
(read_configuration): Handle backupfile_name_2.
* src/server/ramkomd.c (init_data_base): Print backupfile_name_2.
* src/server/param.h (struct kom_par): Added backupfile_name_2.
* src/server/dbck-cache.c (cache_sync): Store the previous backup
file.
* doc/man/lyskomd.8: Added "Backup file 2".
Allow compaction of the text file even if there are errors in the
data base.
* src/server/dbck.c (main): Allow -g even if errors occured, but
only if the user confirms.
1998-10-11 Per Cederqvist <ceder@gratia>
More test cases.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment