Commit 7e3684d3 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Never reuse text or conference numbers. (Bug 810).

parent 14622043
2002-11-05 Per Cederqvist <ceder@ceder.dyndns.org>
Never reuse text or conference numbers. (Bug 810).
* src/server/param.h (struct kom_par): Added numberfile_name and
numberfile_tmp_name.
* src/server/server-config.c (parameters): Added "Number file" and
"Number temp file".
(read_configuration): Handle them.
* src/server/simple-cache.c (highest_conf_no): Explicitly
initialize to 0.
(highest_text_no): Ditto.
(write_number_file): New static function.
(read_number_file): Ditto.
(cached_create_conf): Call write_number_file, and return
KOM_TEMPFAIL if it fails.
(cached_create_text): Ditto.
(init_cache): Don't set highest_conf_no and highest_text_no. They
are only used during the save phase. Call read_number_file.
* db-crypt/db/number.txt: New file.
* db-crypt/db/Makefile.am (EXTRA_DIST): Added number.txt.
(install-data-local): Install number.txt.
(uninstall-local): Remove number.txt. Don't remove anything if
number.txt is altered.
* src/server/testsuite/config/unix.exp (lyskomd_start): New
optional arguments: log_messages, init_db and want_stale. Copy
number.txt. Don't copy the database if init_db is 0. Expect a
log message about a removal of a stale lock file if want_stale is
1. Expect log_messages after the startup messages but before the
garb messages.
(lyskomd_fail_start): Copy number.txt.
* src/server/testsuite/lyskomd.0/bug-810.exp: Expect messages
about lost texts and conferences in the log. Don't expect any
failures.
2002-11-04 Per Cederqvist <ceder@ceder.dyndns.org>
Write test case for bug 810: retain text, person and conference
......
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