Sears Russell
4998e57566
Updated for the new page API
2007-06-07 21:53:09 +00:00
Sears Russell
dd7c6b857d
Added assertlock() and call it when page implementations assume a page has already been latched. (Fixed
...
associated bugs as well)
2007-06-01 21:32:33 +00:00
Sears Russell
d1aeba8a82
Cleaned up obsolete @todo's; fixed inconsistent page file initialization
2007-06-01 21:06:18 +00:00
Sears Russell
bff22716a7
Updated page.h's interface to make it more consistent.
2007-05-31 01:15:12 +00:00
Sears Russell
4c8466555c
Cleaned up Tupdate() by adding TupdateRaw(); removed *_RAW and updated linear hash accordingly.
2007-03-28 09:21:07 +00:00
Sears Russell
918fb9d375
Adds consistency checking for page lsn's.
2007-03-08 07:39:22 +00:00
Sears Russell
078b45dbcc
Removed and/or flagged #include dependencies on pageFile.h (in the process of further factoring bufferManager implementation out of Stasis.)
2007-03-03 02:26:17 +00:00
Sears Russell
73788eb910
Reworked intialization code, includes to isolate bufferManager
...
implementation from the rest of Stasis.
2007-03-03 01:52:03 +00:00
Sears Russell
f6ccaadc35
Updated slotted api to match fixed api; cleaned up dead code.
2007-01-22 20:55:25 +00:00
Sears Russell
7dada65a13
Addded "interpretRid" which knows how to call the "dereference*" functions.
2006-08-11 02:24:01 +00:00
Sears Russell
7888d647ed
Removed unused abort/commit callbacks.
2006-07-26 17:48:36 +00:00
Sears Russell
1ac3dc6779
More progress on boundary tags. (Still not tested/working yet...)
2006-07-18 23:59:00 +00:00
Sears Russell
3e4cac0fe3
Continued cleaning up allocation code. It seems really slow all of a sudden, so this commit probably introduced a performance bug.
2006-06-17 00:25:09 +00:00
Sears Russell
ef43d5e4ce
Implemented log truncation.
2006-04-14 03:45:26 +00:00
Sears Russell
11c311bc91
Added support for raw pages, implemented posix_memalign workaround, and re-enabled O_DIRECT by default
2006-04-12 01:41:35 +00:00
Sears Russell
c29b16a6ed
Created new module, bufferPool, and moved memory management for page structs to it.
2006-04-11 20:34:52 +00:00
Sears Russell
a053b19757
removed extraneous abort
2005-04-14 01:43:14 +00:00
Jimmy Kittiyachavalit
80ed16c18e
Initial implementation of logMemory.c. Haven't yet done any testing, but it seems to compile. However, as of now, the current source code in the cvs repository does not build, dying on check_<somehting (I think ringbuffer.x)>, due to an a reference to an undefined symbol 'mutex'.
2005-03-14 20:54:06 +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
a3112ee81c
Fixes for freebsd.
2005-03-02 05:47:38 +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
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
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
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
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
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
Sears Russell
b04e71360f
Documentation update.
2005-01-20 21:19:47 +00:00
Sears Russell
894e30085c
libdfa ported to new hash table implementation. (Uses nested top actions.)
2005-01-15 23:55:49 +00:00
Sears Russell
80d4af4c9b
Added getRecordType()
2004-11-24 23:25:36 +00:00
Sears Russell
910649a387
Web-site update, a few minor code changes from before the Freenix deadline.
2004-10-27 01:40:09 +00:00
Sears Russell
ec99c0e258
Lots of optimizations; re-did on-disk layout for the linear hash table.
2004-10-19 21:16:37 +00:00
Sears Russell
6b265f28b0
Speedups, most notably in the logging subsystem.
2004-10-19 04:45:42 +00:00
Sears Russell
5064e3fac2
Implemented pages that store fixed sized records efficiently, and a java-style ArrayList data structure that efficiently supports (relatively) clustered, O(1) access time expandable arrays. (This will be used for the hash implementation...)
2004-10-06 06:08:09 +00:00
Sears Russell
96e7af92a4
Added test cases for Tprepare(), implemented some redo-only operations, and started to clean up record allocation/deallocation.
...
Also, numerous bugfixes.
2004-10-02 07:29:34 +00:00
Sears Russell
811bc5c710
Implemented a freespace manager that should safely allocate space, even in the face of crashes, and can reclaim unused space (unless an application opens more than one simultaneous transaction that performs allocations)
...
Fixed some blob bugs (by adding extra fdatasync() calls).
Began factoring out the page management code so that it is an extenstion, and a less integral part of lladd.
2004-08-21 00:03:30 +00:00
Sears Russell
b4d7883f66
Fixed regressions, major update of page / slotted interfaces in anticipation of moving LLADD towards a generic transactional page system.
2004-08-17 01:46:17 +00:00
Sears Russell
82e3fdb53a
Added (untested) support for whole-page operations, lladdhash now works.
2004-08-03 02:04:56 +00:00
Sears Russell
e51759b517
Implemented indirect pages, and fixed some bugs here and there. (Still need to add transactional support for indirect pages...)
2004-07-31 00:27:55 +00:00
Sears Russell
a74c499dd7
Fixed data corruption bug in the freelist implementation, and corrected lsn updates.
2004-07-30 02:07:41 +00:00
Sears Russell
961b63af15
Rewrote / refactored page.h. Now, it uses a freelist to reclaim slotid's within a page, and is implemented as two seperate modules. The first handles lsn's, and (will soon) check the type of each page, and then delegate work to a particular implementation of the second module.
2004-07-30 01:28:39 +00:00
Sears Russell
c649ba7504
O_DIRECT is working now.
2004-07-27 22:04:59 +00:00
Sears Russell
78eb2cbf6a
O_DIRECT (sort of...)
2004-07-27 21:30:54 +00:00
Sears Russell
54ba9b0347
Refactored bufferMananger / pageCache, so that bufferMananger handles loading an unloading pages, and pageCache only implements the replacement policy.
...
Also, used memprof to detect and remove all memory leaks (at least all memory leaks that are encountered by check_transactional2), and fixed a number of misuses of the pblHash.
2004-07-27 01:04:35 +00:00
Sears Russell
e53117a1a0
Implemented (but didn't test) iterator over the records in a page.
2004-07-26 22:01:09 +00:00
Sears Russell
422198418a
bufferMananger is (really!) re-entrant now, performed big refactoring to prevent deadlocks, check_transactional2 ran overnight without coring, w/ 25 threads, and 10000 allocate/write/reads per thread. (The whole test suite was run in a loop...)
2004-07-23 20:21:44 +00:00
Sears Russell
126ae31392
bufferMananger is *really* reentrant now! (I think) However, the same thread may not load a page more than once. So, LLADD has to be altered so that it never calls loadPage() more than once per operation (more efficient), and/or pin/unpin need to be implemented. An easy way to do pin/unpin is to have them pull things out of the cache replacement list, and then re-insert them.
2004-07-21 02:13:28 +00:00
Sears Russell
0ce77903fb
Continuing work on multi-threading. r/w access to buffer manager getting close, but still buggy.
2004-07-20 03:40:57 +00:00