Commit 3e7fa8c1 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(Version 0): next-free-num and next-text-num are one greater than the

	number of existing records.
(Version 1): The same error probably exists here.  Added comment about it.
parent a1c966c7
\input texinfo
@c $Id: lyskomdb.texi,v 1.1 1999/01/07 15:10:40 byers Exp $
@c $Id: lyskomdb.texi,v 1.2 1999/04/03 21:58:09 ceder Exp $
@c %**start of header
@setfilename lyskomdb.info
@settitle "lyskomd Database Format Specification"
......@@ -157,8 +157,8 @@ empty-record : @BB{@@} @BB{NL}
;
@end example
The number of person and conference records is exactly equal to
@II{next-free-num}. The number of text records is exactly equal to
The number of person and conference records is exactly one less than
@II{next-free-num}. The number of text records is exactly one less than
@II{next-text-num}.
Records are stored sequentially. Conference number 18 is the 18th
......@@ -166,12 +166,13 @@ conference record in the file. This implies that deleted records must be
stored as @II{empty-record} records.
@II{next-text-num} is the number of the highest text. There are exactly
one less than
this number of text records in the database.
@II{next-free-num} is the number of the highest conference. There are
exactly this number of person and conference records. This implies that
if conference N is not a letterbox, then person record N will be an
@II{empty-record}.
exactly one less than this number of both person and conference
records. This implies that if conference N is not a letterbox, then
person record N will be an @II{empty-record}.
If the header says ``CLEAN'', the database file is complete. If the
header says ``DIRTY'', the server has not finished writing it
......@@ -219,10 +220,14 @@ deleted : @BB{-C} @II{integer} @BB{NL}
The integer in the conference, text and person records is the ID of the
record. This implies that records can be in any order.
@c FIXME: doesn't it store the first unused number? There is probably a
@c fence error here. /ceder
The @II{next-free-num} record is used to store the highest ID of any
conference in the system. There may be several of these records in the
database.
@c FIXME: doesn't it store the first unused number? There is probably a
@c fence error here. /ceder
The @II{next-text-num} record is used to store the highest ID of any text
in the system. There may be several of these records in the database.
......
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