Commit graph

195 commits

Author SHA1 Message Date
Sears Russell
18c772234d new benchmarks revealed that inserts for linkedList, pageOrientedList were taking O(n) time, yielding O(n^2)
time to build a list, since the lists could not contain duplicate keys.  These operations are now O(1), and
the lists can contain duplicates.
2005-03-10 20:10:49 +00:00
Sears Russell
f28df29736 Fixed unit tests, added iterator interface, and generic (almost) iterator test harness. 2005-03-10 03:19:04 +00:00
Sears Russell
935de3aeb5 minor changes 2005-03-09 03:24:36 +00:00
Sears Russell
e22d4b8e59 Partial implementation of ringbuffer for in-memory long, among other things. 2005-03-08 07:53:53 +00:00
Sears Russell
030ddeb31f *** empty log message *** 2005-03-07 09:10:01 +00:00
Sears Russell
491f86b12a Preliminary outline. 2005-03-07 08:52:09 +00:00
Sears Russell
2c12560e7a Initial import of outline and clone of Freenix paper. 2005-03-07 07:42:57 +00:00
Sears Russell
a3112ee81c Fixes for freebsd. 2005-03-02 05:47:38 +00:00
Sears Russell
c8a0aa830e Compiles on FreeBSD! 2005-03-02 05:46:29 +00:00
Sears Russell
9471b92e1b forgot to add this earlier... 2005-03-02 05:14:59 +00:00
Sears Russell
7833177f05 Fixed the support for more than MAX_TRANSACTION total transactions. 2005-03-02 03:28:00 +00:00
Sears Russell
6360eae602 autoconf macro for finding lladd. (only supports source tree versions of lladd for now, since lladd is
uninstallable)
2005-03-01 07:35:04 +00:00
Sears Russell
3e5f7aea8a Bugfixes for OASYS. 2005-03-01 07:32:02 +00:00
Sears Russell
3b88909c5f Fixed compensations test; FreeBSD fix (?) for makefile. 2005-02-28 00:00:17 +00:00
Sears Russell
890a7385d0 Fixeds cht test / finished error checking within LLADD, but haven't tested error handling yet. 2005-02-24 21:12:36 +00:00
Sears Russell
29dacbe7ed Error handling for linked list. 2005-02-22 23:11:03 +00:00
Sears Russell
41fb85eef0 More error handling... 2005-02-22 03:10:54 +00:00
Sears Russell
84a20a3c96 Started adding error handling code to LLADD. 2005-02-16 04:11:14 +00:00
Sears Russell
f4484e35b5 Update for perl script; added return type handling. 2005-02-16 02:13:54 +00:00
Sears Russell
f68e6b9dd3 Heuristic perl script to check for proper use of compensations. 2005-02-16 02:11:01 +00:00
Sears Russell
fdf5344ec3 Implemented 'compensations' for C. They're not proper compensations, but they're more flexible than pthread's mechanisms, as they allow the stack to be partially rolled up. (Although calling functions need to either check for errors and return manually, or wrap calls to error-producing callees in a begin_action{ }end_action block. 2005-02-14 02:49:59 +00:00
Sears Russell
2ac1302062 Recovery now supports the lock manager. (And vice-versa ;) 2005-02-10 21:56:32 +00:00
Sears Russell
8bf6ea29ff Added @todo that details requirements for next version of alloc. 2005-02-10 21:55:35 +00:00
Sears Russell
b8a67cbfb2 Numerous lock manager fixes; more realistic test case for lock manager, added support for optional page-level locking.(Still need to report deadlocks back up to the caller.) 2005-02-10 03:51:09 +00:00
Sears Russell
6f022cc577 Some random code cleanups, and implemented a naive lock manager. (Still need to tie it into LLADD...) 2005-02-09 02:53:14 +00:00
Gilad Arnold
815942ed4c - some further API improvements (?). 2005-02-08 23:56:47 +00:00
Gilad Arnold
307f268fdc - working with flags instead of Boolean arguments; replaced some specialized
function calls with header-file macros.
2005-02-08 22:06:24 +00:00
Gilad Arnold
b2b0e8a9d4 - test_list2.c now issues a secondary init/shutdown sequence, just to make
sure that repeated init/shutdown works correctly.
2005-02-08 08:05:24 +00:00
Gilad Arnold
b0a9265d1a - enhanced init/shutdown semantics: init may now be re-issued, following a
predecessing shutdown; note that shutdown does not deallocate objects (either
  persistent or non-persistent), hence re-init would use the same objects as in
  the previous run (assuming they are all intact).
2005-02-08 08:04:35 +00:00
Sears Russell
258dd5f4c4 Fixed up some return values; tests now pass with assert disabled. 2005-02-08 01:13:57 +00:00
Gilad Arnold
eec80a0e38 - improvement to error handling in pobj: now properly handles resource
allocation errors (at least most cases...?), including hash/queue
  library calls.
2005-02-08 00:54:30 +00:00
Gilad Arnold
c94bee33a3 - cosmetic changes to debug logging. 2005-02-07 07:59:40 +00:00
Gilad Arnold
037c164728 - cosmetic fixes in hash module
- new debug facility to show context-based (stack) debugging messages; turned on
  by corresponding compile switch (HAVE_DEBUG_CONTEXTS, currently hard-coded in
  debug.h)

- added use of dedicated queue module (supporting dynamic allocation and
  growable buffers).

- improvement w.r.t. full error handling in pobj.c: tackled some error cases
  with library calls (malloc, hash module calls, etc) -- but still there's a way
  to go.
2005-02-07 07:11:52 +00:00
Sears Russell
e33319175f Fixed some cht bugs. Abort is flakey. 2005-02-06 03:48:12 +00:00
Gilad Arnold
f96061a1bd - implementation of growable queues; to replace fix-sized queues used
in recursive traversal functions.
2005-02-03 21:22:14 +00:00
Gilad Arnold
91f2c7c382 - moved pobj header internals back into the .c file (sorry Amir)
- added pobj_is_persistent() call to replace the formerly used macro

- minor rearragement of common contants/macros

- minor fix to makefile
2005-02-03 21:05:48 +00:00
Gilad Arnold
1fd827a59e - cosmetic: changes all shorthand for 'repository' from 'rep' to 'repo'...
- handling error return value of hash_insert in two cases (still two other left)
2005-02-03 20:43:15 +00:00
Gilad Arnold
570dc16f70 - minor: hash_insert returns an error in case of memory allocation failure 2005-02-03 20:40:31 +00:00
Gilad Arnold
c3229723ab - removed std99 and pedantic flags for GCC (caused annoying warnings
with variable argumented macros).
2005-02-03 20:39:11 +00:00
Sears Russell
a27787b2fa Cluster hash table now allows transactions to contain multiple requests. 2005-02-03 02:01:23 +00:00
Sears Russell
54ecc0d3c4 page->dirty is now set correctly (assuming LSN's are updated properly). pageFile.c makes use of this fact by ignoring write requests on clean pages. 2005-02-02 02:12:40 +00:00
Sears Russell
24b644162f Shortened test because it was painfully slow. 2005-02-02 02:10:17 +00:00
Sears Russell
a4c13449b8 Bugfix for pageOrientedList. 2005-01-31 02:18:46 +00:00
Sears Russell
1260710a27 Got rid of another broken hash implementation... 2005-01-31 01:34:29 +00:00
Sears Russell
bb69197a65 Fixed blob implementation (it was impossible to distinguish between a blob and a record of length 12), removed jbhash, and ported cht to linearHashNTA. 2005-01-31 01:29:52 +00:00
Sears Russell
7cf5fdee6e Re-implemented pageOrientedListNTA from scratch. It's now more flexible, but relies on features that are not provided by Talloc/Tdealloc, so performance isn't as good as it could be. 2005-01-29 01:17:37 +00:00
Sears Russell
4d04155b0e An optimized, but still slow implementation of pageOrientedList. 2005-01-29 01:09:29 +00:00
Sears Russell
56d98adcbf Working, but slow and non-concurrent variable length key/value support for linear hashtable. 2005-01-28 21:28:23 +00:00
Sears Russell
17f76264aa Implemented pageOrientedList, also did some bug fixing, and added some support functions to alloc.c 2005-01-28 03:32:17 +00:00
Sears Russell
05934d296a Removed O_DIRECT since it breaks on 2.4 kernels. Need to figure out how to
detect this in the build script so that systems that support O_DIRECT can use it.

(Note:  RedHat kernels silently fail on O_DIRECT)
2005-01-24 19:58:09 +00:00