1. 24 May, 1999 2 commits
  2. 12 May, 1999 1 commit
    • David Byers's avatar
      New RPC calls: · e6dca4a9
      David Byers authored
              set-pers-flags
      
      Modified RPC calls
              create-person (new parameter pers-flags)
      
      Removed several hard-coded constants and paths.
              Max texts
              Max conferences
              Nologin file
      
      Support for aux-item validation functions (not just regexps.)
      Support for aux-items that can only be created by the server
      Support for linking pairs of aux items
      
      Added test cases to improve code coverage
      
      Renamed log to kom_log to avoid conflicts with math function log.
      
      Several bug fixes (code and documentation)
      e6dca4a9
  3. 25 Apr, 1999 1 commit
  4. 05 Apr, 1999 2 commits
    • Per Cederqvist's avatar
      (nr_constructs): New static variable, used to gather statistics. · 37e24129
      Per Cederqvist authored
      	Changed all functions to set it where appropriate.
      (nr_l2gs): Likewise.
      (nr_l2gs_peak): Likewise.
      (nr_destructs): Likewise.
      (nr_clears): Likewise.
      (nr_copies): Likewise.
      (nr_joins): Likewise.
      (nr_joined_blocks): Likewise.
      (nr_blocks): Likewise.
      (nr_blocks_peak): Likewise.
      (nr_blocks_sparse): Likewise.
      (nr_blocks_sparse_peak): Likewise.
      (sparse_skip_cost): Likewise.
      (nr_sparse_compactions): Likewise.
      (nr_sparsifications): Likewise.
      (l2g_destruct): Actually fill the destructed object with garbage
      	data, unless NDEBUG is defined.
      (l2g_read): New file format.
      (put_ulong): New static function.
      (l2g_write): New file format.
      (dump_l2g_stats): New function.
      37e24129
    • Per Cederqvist's avatar
      Comments improved. · 32273ec9
      Per Cederqvist authored
      32273ec9
  5. 31 Mar, 1999 1 commit
    • Per Cederqvist's avatar
      Dead code removal: · 3e82f283
      Per Cederqvist authored
      (find_block_index_key): Blocks can never be completely empty.  Code
      	simplified accordingly.
      (l2g_append): Likewise.
      (l2gi_next): Likewise.
      3e82f283
  6. 26 Dec, 1998 1 commit
  7. 09 Aug, 1998 1 commit
  8. 27 Jul, 1998 2 commits
  9. 26 Jul, 1998 1 commit
    • Per Cederqvist's avatar
      Include assert.h. Only include · 2b107568
      Per Cederqvist authored
      stdlib.h if HAVE_STDLIB_H.  Include stdio.h if we didn't get NULL
      from stdlib.h.  Inlucd lyskomd.h and server/smalloc.h.
      (L2G_BLOCKSIZE): Moved here from local-to-global.h.
      (struct l2g_block_info): Likewise.
      (is_dense): New static function.
      (is_empty): New static function.
      (key_value): New static function.
      (sparse_skip_deleted): New static function.
      (sparse_locate_value): New static function.
      (sparse_compact): New static function.
      (add_block): Use srealloc instead of realloc.  Don't initialize
      	start -- the caller is responsible for doing so.
      (delete_block): Use sfree instead of free, and srealloc instead of
      	realloc.
      (make_sparse): Don't change the value of start, since there is no
      	need to, and make_sparse may now be called on an empty block,
      	which would cause start to be set to a garbage value.
      (find_block): Added a const qualifier to the return value and l2g
      	argument.  Use key_value to simplify code.
      (find_block_index_key): Added a const qualifier to the l2g
      	argument.  Use helper functions to simplify the code.  Use
      	sparse_skip_deleted so that the function never returns a deleted
      	key.  Never return deleted keys in dense blocks either.
      (join_range): New static function.
      (join_blocks): New static function.
      (l2g_init): Set first_unused to 1.
      (l2g_clear): Use sfree instead of free.  Set first_unused to 1.
      (l2g_copy): Added const qualifier to the src argument.  Simplified
      	code by using helper functions and relying on the fact that
      	calling l2g_append with a Text_no=0 is a no-op.  Set first_unused
      	of the copy.
      (l2g_append): Send a log message and do nothing if an attempt to
      	set a local number lower than first_unused is detected.  Set
      	first_unused.  Fixed the logic about when to add a new block, when
      	to compact the last block, and when to make it sparse.  Simplify
      	code by using the helper functions.
      (l2g_delete): Don't increase the zeroes counter if a zero is
      	deleted.  Delete the entire block if it became empty.  Attempt to
      	join this block to its neighbors.  Compact the block if it was
      	sparse and contained too many deleted entries.
      (l2g_lookup): Added const qualifier to the l2g argument.  Don't
      	return uninitialized data.  Use helper functions to simplify code
      	and make it slightly faster.
      (l2g_next_key): Added const qualifier to the l2g argument.
      (l2g_first_appendable_key): New function.
      (l2g_delete_global_in_sorted): New function.
      (l2g_compact): Removed.
      (l2g_dump): Switch placement of l2g and file arguments to match
      	other similar functions in the lyskomd code.  Added const
      	qualifier.  Dump first_unused.  Use helper functions to simplify
      	code.
      (l2g_read): Switch placement of l2g and file arguments to match
      	other similar functions in the lyskomd code.  Read first_unused.
      	Return a success indicator.  Detect unexpected EOF conditions.
      (l2g_write): Switch placement of l2g and file arguments to match
      	other similar functions in the lyskomd code.  Write first_unused.
      	Use helper functions to simplify code.
      (l2gi_searchall): Added const qualifier to the l2g argument.
      	Simplify code by calling l2gi_searchsome instead of duplicating
      	the code.
      (l2gi_searchsome): Added const qualifier to the l2g argument.
      	Complain if the begin argument is less than 1.  Don't forget to
      	initialize search_ended.  Set beginval.  Giving end==0 means that
      	the iterator should continue to the end of the set.  Use helper
      	functions to simplify the code.
      (l2gi_next): Use helper functions to simplify code.  The iterator
      	is unlimited if endval==0.
      (l2gi_begin): New function.
      (l2gi_end): New function.
      2b107568
  10. 08 Jul, 1998 1 commit
  11. 06 Jun, 1997 1 commit
  12. 12 Sep, 1996 1 commit
  13. 01 Sep, 1996 1 commit
  14. 25 Aug, 1996 3 commits