Sears Russell
97a2fdd600
fix null pointer dereference when recovering loser transaction that makes use of multipage operations
2010-05-19 01:22:40 +00:00
Sears Russell
71292538e8
Amortize bucket initialization costs for linear hash tables. The best case improvement (~ 20%) is seen with hashes with fixed length key/value pairs and insert-only workloads
2010-05-12 17:51:20 +00:00
Sears Russell
dc1f799a37
TarrayListAlloc() and TarrayListExtend() now generate O(1) bytes of log entries; they use the new multipage operation type.
2010-05-11 23:34:13 +00:00
Sears Russell
820f706faf
TarrayListExtend now zeros out the contents of the newly allocated records (this is implemented by having fixed.c zero out the records)
2010-05-11 23:27:22 +00:00
Sears Russell
75ae7103fc
fix crash in recovery redo that was caused by multipage operations
2010-05-11 23:17:09 +00:00
Sears Russell
2d645beb42
cleaned up multipage operations a bit; added stasis_segments_enabled flag
2010-05-11 22:01:37 +00:00
Sears Russell
07df7c064a
add support for multi-page operations
2010-05-11 00:17:07 +00:00
Sears Russell
ffa4f18283
add tryToWriteBackPage. concurrentBufferManager is now compatible with FORCE mode transactions.
2010-04-28 00:05:00 +00:00
Sears Russell
ee6d0768d3
Fix failing assert by replacing trywritelock with writelock in concurrentBufferManager. Revision -r1380 relaxed an invariant, causing the trylock to sometimes contend with other threads
2010-04-26 04:07:38 +00:00
Sears Russell
74803d354e
fix latch ordering in concurrent buffer manager. It no longer does a lock(p->loadlatch) while holding a hashtable bucket latch. Instead, it trylocks, then compensates for in progress changes if the latch fails.
2010-04-23 23:51:12 +00:00
Sears Russell
04de939e42
fix null pointer derefence in lruFast.c; add unit tests to check for this bug
2010-04-21 21:34:00 +00:00
Sears Russell
87ba38adb7
fix compilation when CONCURRENT_LRU is defined; make it the default (since it is only used by concurrentBufferManager)
2010-04-20 03:56:47 +00:00
Sears Russell
c7fa929e71
This fixes in Stasis issue 22.
...
Replacement policies now track the pin count of each page that they interact with. This behavior used to live in bufferHash, and had never been ported to concurrentBufferManager.
For various reasons, the pin counts have to be updated atomically with the LRU state. This would be very difficult to do inside of concurrentBufferManager, which sometimes needs to add and remove pages to replacement policies without holding any other latches.
2010-04-20 01:09:32 +00:00
Sears Russell
887832582c
expose stasis_handle_t up through the buffer manager; add sequential I/O hinting; fix stupid busy-wait in prefetch
2010-04-12 20:54:10 +00:00
Sears Russell
7c5eb2a7e9
added dup method to io handles
2010-04-08 23:50:01 +00:00
Sears Russell
ff2f2e9e1e
add TregionPrefetch()
2010-03-31 22:41:33 +00:00
Sears Russell
358f037441
fix concurrency bug that cropped up when the concurrent buffer manager was used with the concurrent wrapper replacement policy. Concurrent wrapper hashes on pageid, but the buffer manager was changing the pageid out from under it
2010-03-31 22:39:07 +00:00
Sears Russell
d281282533
fix concurrentWrapper so that it implements the same api as the other replacement policies (it used to livelock when no pages were available. It now returns null).
2010-03-31 22:37:42 +00:00
Sears Russell
3c27ed566e
add prefetch primitives
2010-03-29 22:29:30 +00:00
Sears Russell
e17e948697
add missing return statement
2010-03-29 22:29:14 +00:00
Sears Russell
6deb34f5b2
fix handling of loadPageForOperation during recovery; initialize rid.size in slottedLast
2010-03-22 19:56:55 +00:00
Sears Russell
85abeb9d77
Fix ArrayList regressions
2010-02-18 19:50:06 +00:00
Sears Russell
5ffd1110e9
Added concept of "transaction fingerprints"
...
The region allocator marks freed regions "Condemned" before actually freeing them. Condemned regions are associated
with a transaction; before they can be reused / coalesced the transaction that condemned them must complete.
The region allocator used "TisActiveTransaction(xid)" to determine whether a given transaction had completed. The
problem is that Stasis now reuses transaction id's, and condemned regions were never reclaimed in practice. A transaction
fingerprint is a unique identifier (currently transaction id, rec_lsn) that can be used to distinguish transactions that
did not execute concurrently.
I considered an alternative design based upon end-of-transaction actions. This would have worked as well, but would
have been a more invasive change.
2010-02-18 19:12:46 +00:00
Sears Russell
6454d55a42
fix bug in loadUninitializedPage(). It was passing INVALID_XID into the transaction table, which is not allowed
2010-02-18 19:04:39 +00:00
Sears Russell
4e100479d1
Add TarrayListDealloc() to arrayList. Remove one region allocation from each array list alloc. Add unit test for dealloc.
...
Also, removed some old compensations cruft.
2010-02-18 04:12:39 +00:00
Sears Russell
adfecfada3
Fix LSN handling in loadUninitializedPage()
2010-02-18 04:11:22 +00:00
Sears Russell
ba3179710b
Suppress shutdown warning when empty transactions are automatically rolled back.
2010-02-17 05:10:30 +00:00
Sears Russell
98e0cb1fab
implement TregionSize(), add TregionForce()
2010-02-12 16:44:28 +00:00
Sears Russell
c440f7ad62
fix typo in uncompiled code
2010-02-11 22:18:17 +00:00
Sears Russell
078d518bb6
cleaned up some lsn-free stuff
2010-02-11 21:21:31 +00:00
Sears Russell
757a877c84
added VALGRIND_MODE
2010-02-11 21:18:26 +00:00
Sears Russell
1ff9afb753
added new constant: INVALID_SIZE
2010-02-11 20:36:33 +00:00
Sears Russell
fac5d2ff37
fix default LSN handling for pages with headers
2010-02-11 20:35:38 +00:00
Sears Russell
9bdaf23764
add some more thread-safe pblHt wrappers to fix lockManager
2010-01-23 00:27:01 +00:00
Sears Russell
031e21fa6c
fix race condition introduced by last commit
2010-01-22 23:52:57 +00:00
Sears Russell
3e2bbc2eb6
move lsn sets into reserve_entry. write_entry is now a no-op
2010-01-22 23:41:10 +00:00
Sears Russell
bb182ee0b0
fix new truncation check; it was using values for the old copy of the log to check the new copy.
2010-01-22 19:13:14 +00:00
Sears Russell
49979ffa52
unit test for libredblack
2010-01-21 23:48:43 +00:00
Sears Russell
51dc17d1c3
fail earlier on mismatched truncation file. One run of check_multiplexer saw truncation leave a zero byte log
2010-01-21 23:48:04 +00:00
Sears Russell
bb92d86c85
fix check_lockManager. The lock manager now relies on a global mutex to protect its hashtables. Eventually, it should be ported over to the concurrentHash API (or something more general purpose...)
2010-01-21 22:43:38 +00:00
Sears Russell
434cec1b6a
fix for regression in r1335. nextUnstableLSN needs to point to the beginning of a valid log entry. Add sizeof(lsn_t) to its computation so that we point at the beginning of the next entry, not to its size
2010-01-21 22:30:02 +00:00
Sears Russell
17ac09c652
fix deadlock in check_multiplexer.
2010-01-21 21:53:18 +00:00
Sears Russell
e2498b62be
fix deadlock; reorderingHandle was acquiring a write latch while writing a log entry, leading to an inconsistent latch ordering
2010-01-21 21:05:25 +00:00
Sears Russell
dbf253275f
fix nested top action log race; because of a refactoring mistake, it was releasing a mutex without acquiring it...
2010-01-21 20:27:35 +00:00
Sears Russell
5f705a4463
skip the log force when TforceCommits() is called and the entire log has already been forced. The old behavior generated a redundant CRC entry and force wrote it.
2010-01-21 18:42:50 +00:00
Sears Russell
f2ee7b6573
fix bug exposed by new group commit behavior; nextUnstableLSN was returning the offset of the beginning of the CRC entry, not the end of it. This was causing an assertion to fail.
2010-01-21 18:28:34 +00:00
Sears Russell
250223086c
reordered includes for compatibility with gcc3
2010-01-21 00:03:17 +00:00
Sears Russell
b1f7d1947a
more log refactoring. safeWrites now holds a latch across reserve_entry, write_entry, and write_entry_done
2010-01-19 02:14:09 +00:00
Sears Russell
18508fd2f1
fix stasis_log_force and groupForce to handle INVALID_LSN properly; instead of bypassing group force in LOG_FORCE_COMMIT mode, they now unconditionally group commit. This allows TforceCommits() to take advantage of group commit
2010-01-19 01:54:53 +00:00
Sears Russell
19061227b3
fix recovery corner case; it is possible that Tdealloc() is called before the regions are registered with the allocator
2010-01-19 01:48:17 +00:00
Sears Russell
c8cc188b71
unsigned int -> uint32_t
2010-01-19 01:47:13 +00:00
Sears Russell
560cdc2330
fix compiler warning
2010-01-11 23:13:53 +00:00
Sears Russell
46b428547d
fix log entry leak in redorderingHandle
2010-01-11 23:07:08 +00:00
Sears Russell
022136d3c3
move inMemoryLog, to the new api
2010-01-11 22:55:55 +00:00
Sears Russell
67b8808739
fix flex test
2010-01-11 21:00:46 +00:00
Sears Russell
d71e248291
removed freeLogEntry
2010-01-11 20:41:59 +00:00
Sears Russell
44e5e8b4fc
Refactor regions to avoid hack during startup. It used to allocate a dummy log entry, then free it. This causes trouble with the upcoming log api, since the log implementation will need to manage log entry memory for performance reasons.
2010-01-07 21:57:13 +00:00
Sears Russell
f3d06543e5
silence spammy debugging messages; clean up check_io test case implementation a bit
2010-01-06 23:44:07 +00:00
Sears Russell
078a8619fe
check flex version (fixes compilation under rhel 5)
2010-01-06 23:43:31 +00:00
Sears Russell
1af589dd18
remove malloc and memcpy from the in_memory_log read path
2009-12-31 23:25:56 +00:00
Sears Russell
1409a9eb27
more refactoring; log handles now manage their log entries memory
2009-12-31 23:01:37 +00:00
Sears Russell
a5788688c8
refactor getUpdateArgs; remove a bunch of casts, fix a bunch of warnings
2009-12-31 20:20:47 +00:00
Sears Russell
1c82f9e76e
add parens to ambiguous if
2009-12-31 19:47:27 +00:00
Sears Russell
9aa1d9d652
pull memcpy out of allocUpdateEntry()
2009-12-31 19:30:40 +00:00
Sears Russell
32e40c949d
added log modes to sequentialThroughput benchmark, added methods for concurrent appends to log api (and stubbed them out)
2009-12-31 19:02:34 +00:00
Sears Russell
69c513b913
some untested code to deal with perl hashes
2009-12-31 17:39:35 +00:00
Sears Russell
7ff80f37ef
add deferred, end of transaction callbacks. addresses issue 15
2009-12-15 06:30:37 +00:00
Sears Russell
dfe83a215d
reorder initialization code so that the i/o backend stuff happens all at once
2009-12-09 19:56:19 +00:00
Sears Russell
a6bd46fef5
revert commit to referential that breaks build on machines without libcheck
2009-12-09 19:46:08 +00:00
Sears Russell
ed1ed5fcf2
perl unit tests are now automatically run
2009-12-08 23:17:17 +00:00
Sears Russell
83a0ec68fe
fix rose bit rot, have unintialized page clear the impl pointer (for tidyness), remove some resolved @todos.
2009-12-04 19:33:09 +00:00
Sears Russell
2e237f2e2b
fix memory allocation bug in rose benchmark initialization code
2009-12-04 19:26:23 +00:00
Sears Russell
16372e46d2
fix warning + problem with tdestroy() detection
2009-11-30 19:38:35 +00:00
Sears Russell
85c8e9f82c
initial openbsd port
2009-11-29 06:57:16 +00:00
Sears Russell
2ff421bff0
initial opensolaris port
2009-11-29 03:22:36 +00:00
Sears Russell
1d7e60dbd0
fix more automake build errors
2009-11-24 18:42:44 +00:00
Sears Russell
2535f69fbc
switch the concurrent hash to use lru->getStaleAndRemove; fix crashes due to partial leak of thread local pages on thread shutdown
2009-11-24 01:43:36 +00:00
Sears Russell
dd0c96a8a7
fixed implementation of hashtable_test_and_set
2009-11-24 01:32:59 +00:00
Sears Russell
675bdce24a
wrote some wrappers that emulate redblack; default to stl tree for now
2009-11-24 00:24:18 +00:00
Sears Russell
0f3902b34a
fix build error
2009-11-23 23:04:01 +00:00
Sears Russell
0ae8267f2c
cleaned up comparators; did not fix any bugs though
2009-11-10 02:15:58 +00:00
Sears Russell
07c3ad7979
less concurrent latching
2009-11-10 02:15:39 +00:00
Sears Russell
51911f79f2
fix compiler warning
2009-11-09 23:45:50 +00:00
Sears Russell
1b0c10b37b
clean up handling of uninitialized pages (removes some special case code)
2009-11-09 23:02:27 +00:00
Sears Russell
b4a0f2436b
concurrent lru implementation for new buffer manager
2009-11-09 20:53:05 +00:00
Sears Russell
8bd0616f97
new concurrent buffer manager
2009-11-09 19:50:00 +00:00
Sears Russell
f5e3ab2d91
concurrent hashtable seems to be working; still need to work out atomicity primitives (eg; options to leave the bucket locked on success)
2009-10-19 21:55:25 +00:00
Sears Russell
1cf16f62f2
add optional support for gcc atomics to transaction table
2009-10-15 22:46:25 +00:00
Sears Russell
e6a718a7f9
improved concurrency for transaction table
2009-10-15 20:11:43 +00:00
Sears Russell
5df5512d91
fixed unit test bug; logWriters may now return NULL when readers attempt to read before the beginning of the log
2009-10-15 18:48:58 +00:00
Sears Russell
331f680c09
partial rewrite of transaction table to reduce thread contention
2009-10-15 02:33:08 +00:00
Sears Russell
4565aff9de
more refactoring; no more globals in transactionTable.c
2009-10-14 21:22:50 +00:00
Sears Russell
dbe3ecf0d0
refactoring transaction table; moved implementation into its own file. still need to remove globals
2009-10-14 18:57:50 +00:00
Sears Russell
20ef74b104
use pthread_rwlock instead of rwlock userspace emulation of it
2009-10-13 00:29:35 +00:00
Sears Russell
4cb618988d
improve performance of noop transactions
2009-10-12 22:29:57 +00:00
Sears Russell
0e93a577c9
use INVALID_LSN instead of hardcoded -1
2009-10-12 22:26:32 +00:00
Sears Russell
5f55abfa23
add support for #!/usr/bin/env timer.pl
2009-10-12 22:25:55 +00:00
Sears Russell
20a3fe9df5
add support for soft commits, and making prior soft commits durable
2009-10-12 19:16:41 +00:00
Sears Russell
942ba7fffc
bugfixes + support for hard limits on log size
2009-10-08 22:48:58 +00:00
Sears Russell
8c2ce5f56e
fix typo
2009-10-06 00:12:39 +00:00
Sears Russell
6a02f2f159
buffer manager implementation is now determined by an overridable factory method
2009-10-05 22:39:09 +00:00
Sears Russell
24650fa190
buffer manager refactoring; started work on new dirty page table writeback interface (to avoid circular dependencies)
2009-10-05 21:19:01 +00:00
Sears Russell
8bf64aed58
fix compiler warning
2009-10-05 20:48:04 +00:00
Sears Russell
0a1ca5e1cc
make compilation succeed on macosx; this will still run macs out of disk space. Also, it disables a number of binaries that probably should be supported on macs.
2009-10-02 00:45:10 +00:00
Sears Russell
95d0df4a36
ashok's patch - fix more realloc problems
2009-10-01 02:13:32 +00:00
Sears Russell
4689582cb5
improve log performance by disabling O_SYNC by default (and use fdatasync instead)
2009-09-12 16:20:13 +00:00
Sears Russell
e48bc7adf3
partial b-tree stuff
2009-09-10 21:02:56 +00:00
Sears Russell
6abdb3c1c1
fix deadlock in inMemoryLog
2009-08-31 00:51:45 +00:00
Sears Russell
75ed19556b
Disable NAIVE_LOCKING in lhtable. (Should never have been enabled...)
2009-08-27 15:28:01 +00:00
Sears Russell
6562d6dd53
Add parens to comparators in allocationPolicy and dirtyPageTable.
2009-08-23 00:32:50 +00:00
Sears Russell
c4e80b41b5
more include cleaning on alloc, begin cleaning of bufferHash
2009-08-22 21:29:27 +00:00
Sears Russell
1ce1496226
dependency cleanups; removed compenastions from alloc.c
2009-08-22 00:01:02 +00:00
Sears Russell
94c542f8b1
Increase dirtyPageTable concurrency
...
Add special-casing of lhtable; special case for buffer manager.
2009-08-14 06:31:13 +00:00
Sears Russell
dd0bcae074
add thread synchronization logic to ensure that only one thread is performing writeback at a time. This fixes weird I/O interleavings on some machines
2009-08-13 23:18:49 +00:00
Sears Russell
0154f7d29d
IMPORTANT API CHANGE: stasis_dirty_page_table_flush_range() no longer force writes to disk. You now need to call forcePageRange() after flush page range returns.
...
This commit should significantly improve sequential write thoughput.
I found a segfault bug this morning, but cannot reproduce. Could be a heisenbug, or could have been a hardware fault (gojira repeatedly kernel paniced, then both problems went away...)
2009-08-13 05:53:48 +00:00
Sears Russell
0cc65aefaf
Remove LRU-ordered writeback. Instead, writeback pages sequentially once some fraction of the page file is dirty. Also. further simplifies writeback code.
2009-08-11 17:23:43 +00:00
Sears Russell
0f2b2ff200
remove special write path in deinit. (instead, attempt to avoid random I/O on shutdown)
2009-08-08 16:07:20 +00:00
Sears Russell
a0f9a7bc81
Cleaned up page locking + a harmless memory bug. Add missing locks to page writeback.
2009-08-08 07:59:19 +00:00
Sears Russell
907a24b68e
dirty page table flush was pinning pages, then asserting they were not pinned; updated page writeback api to allow correct usage
2009-08-08 01:43:03 +00:00
Sears Russell
c92ee87c32
improved behavior for sequential I/O performance, fixed races during writeback
2009-08-07 18:27:52 +00:00
Sears Russell
68e947fb6d
added missing case to allocationPolicy
2009-08-07 17:26:40 +00:00
Sears Russell
a6aa8ed942
added method to access dirtyPageTable
2009-08-05 20:02:33 +00:00
Sears Russell
573cbaa98e
implemented missing api calls
2009-08-05 19:56:35 +00:00
Sears Russell
69490f1c98
implement convention that stop=0 means flush to EOF
2009-08-05 19:50:07 +00:00
Sears Russell
16c137aaf7
remove unnecessary checks
2009-08-05 19:48:59 +00:00
Sears Russell
5b10bcc63b
Reimplemented allocationPolicy.c; updated API + added more cases to the unit tests.
2009-08-05 06:35:11 +00:00
Sears Russell
c961b34903
forgot to commit b-tree source files
2009-07-29 21:04:08 +00:00
Sears Russell
ebd6b14dbf
single-page btrees are working
2009-07-29 21:03:16 +00:00
Sears Russell
0a308f035c
more header cleaning; updated INSTALL
2009-07-26 19:47:05 +00:00
Sears Russell
081c61b414
cleaned up includes, autoconf is now optional, since cmake now creates a config.h
2009-07-26 18:51:45 +00:00
Sears Russell
260310e151
Add page ops for tree implementations.
2009-07-26 06:18:54 +00:00
Sears Russell
5ca3a008fa
Code / whitespace cleanup (no logic changes)
2009-07-25 23:17:03 +00:00
Sears Russell
8c012bd1c8
Silence extraneous warning, add '--mode -1' to the slotted benchmark (-1 bypasses function dispatch when setting the records)
2009-07-25 23:02:27 +00:00
Sears Russell
7f2edd880d
New (more thorough, less frequent) tests for slotted pages. Renamed slotted methods, added microbenchmark for slotted pages.
2009-07-20 17:42:43 +00:00
Sears Russell
9ef3adf40c
- Fix compile warning + broken fcn pointer from last commit.
...
- Address crashes in Tupdate() and recovery caused by mixing segments and page oriented recovery (add loadPageForOperation() call)
2009-07-16 03:05:32 +00:00
Sears Russell
b44f8b17b3
Add getCachedPage() call. This allows dirtyPageTable to write back pages with out accidentally reading them back in from disk with loadPage(). This should improve performance and allow loadPageOfType() to be used safely.
2009-07-14 07:46:47 +00:00
Sears Russell
4493dbb88b
Added support for segment based recovery. For now, Stasis doesn't support hybrid recovery, so mixing page deallocation and segments will make recovery corrupt data / segfault.
2009-07-13 17:18:01 +00:00
Sears Russell
d6c91241d6
fixed bug that caused loadPageOfType to ignore type parameter. Recovery is still broken, since it calls loadPage, even when it can't
2009-07-10 01:19:44 +00:00
Sears Russell
eb0661ceeb
added segment.c
2009-07-09 21:09:36 +00:00
Sears Russell
ade1dc896e
Add loadPageOfType() call. (Untested for now)
2009-07-07 21:33:49 +00:00
Sears Russell
cf49c7dbf1
forgot to svn rm indirect's files
2009-07-07 20:05:15 +00:00
Sears Russell
397b0fa245
remove indirect page implementation
2009-07-07 20:03:52 +00:00
Sears Russell
2593de7a2c
Move page type to Page_s struct. This breaks indirect.c (which is poorly thought out, and will be removed shortly), and was the next step on the road to segment-based recovery
2009-07-07 19:20:22 +00:00
Sears Russell
b66328192c
in-memory group by implementation
2009-07-01 01:33:24 +00:00
Sears Russell
09af29abad
clean up iterator interface; remove Titerator_releaseLock()
2009-06-28 18:54:57 +00:00
Sears Russell
120665ae53
cleaned up arrayList. stasis_record_write no longer takes an LSN (it was ignoring it anyway). Added some missing calls to stasis_page_lsn_write (each time a page is written to, stasis_page_lsn_write should be called; this happens automatically for operations called via tupdate
2009-06-02 18:25:35 +00:00
Sears Russell
3cc48c4fc4
check for page leaks at shutdown; move myrandom() into check_includes.h, fix a number of page leaks / double frees
2009-05-30 02:23:17 +00:00
Sears Russell
25c6be64b4
add assertunlocked() call
2009-05-30 02:22:04 +00:00
Sears Russell
8a95f5859d
fixes Issue 8: When passed a prefix of an existing key, pageOrientedList will no longer treat the prefix and the existing key interchangably
2009-05-21 04:13:50 +00:00
Sears Russell
9de2e515f8
eclipse whitespacifaction
2009-05-21 04:10:41 +00:00
Sears Russell
7db06197ca
refactored truncation + dirty page table, fixed doxygen warnings.
2009-05-20 21:23:51 +00:00
Sears Russell
73c4b4fb71
Fix for Issue 1. Reworked log format so that nested top actions do not need to look up old entries during forward operation. This saves log bandwidth and avoids the bug that caused the performance regression
2009-05-14 21:28:09 +00:00
Sears Russell
3ff75ff568
made pass over log documentation
2009-05-13 22:06:58 +00:00
Sears Russell
87218ad929
yet another refactoring; broke groupForce into its own module, removed more static variables and namespace violations
2009-05-13 18:04:53 +00:00
Sears Russell
bc554efc85
renamed some functions to match naming convention
2009-05-08 06:53:30 +00:00
Sears Russell
651a1a22e5
more refactoring; removed static variables from pageHandle.c
2009-05-08 04:56:34 +00:00
Sears Russell
221b2e4acb
remove static variables, fix filehandle leak
2009-05-07 09:56:36 +00:00
Sears Russell
7b4cf40221
refactored/created stasis_buffer_manager_open and stasis_handle_open
2009-05-07 08:52:06 +00:00
Sears Russell
b5b414490a
fix config.h error for installed copies of stasis
2009-04-29 21:31:39 +00:00
Sears Russell
f947a2b417
add make install target
2009-04-29 20:22:41 +00:00
Sears Russell
55c43358b6
fix recovery bug due to interactions between truncation and the old CLR format. check_faultInjection should now pass.
2009-04-22 22:03:38 +00:00
Sears Russell
731da7456a
more eclipse refactoring; cleaned up some names, whitespace and documentation
2009-04-13 22:50:12 +00:00
Sears Russell
7db35ecd39
removed static variables from bufferPool.c; renamed methods, moved Page typedef to common.h
2009-04-13 21:55:08 +00:00
Sears Russell
4b07b538a6
Renamed some methods; fixed bug that caused recovery to create potentially unbounded numbers of concurrent, active transactions.
...
(Note: this commit contains quite a few instances of auto-cleaned whitespace....)
2009-04-11 17:17:42 +00:00
Sears Russell
dacc33642e
silence cast warnings on 32-bit linux
2009-04-09 15:17:38 +00:00
Sears Russell
05077b62fd
nested top action cleanup and bugfix; subsequent recovery calls could undo logical undos in some circumstances
2009-04-03 22:01:37 +00:00
Sears Russell
83a982d0bf
fail earlier if record_type and record_size apis are abused
2009-04-01 21:12:50 +00:00
Sears Russell
564dfe426b
Renamed / refactored operation implementation + registration functions. Added support for third party operations
2009-03-31 05:02:54 +00:00
Sears Russell
83ad15b6d0
more benchmarks; transactions can now be multithreaded
2009-03-20 11:36:27 +00:00
Sears Russell
d413bb27f3
support for lsn-free writeback; partial benchmark code for submission
2009-03-19 03:36:13 +00:00
Sears Russell
b1f44ab005
added simplistic support for log reordering
2009-03-16 08:11:49 +00:00
Sears Russell
45a2410a25
add support for lsn-free set (but not alloc, etc...)
2009-03-15 07:21:37 +00:00
Sears Russell
bd2015443f
expose nextAvailableLSN for lsn-free pages
2009-03-15 02:43:09 +00:00
Sears Russell
a69e61ed85
stop checking hash.size, which has changed
2009-03-15 02:11:01 +00:00
Sears Russell
9e54ad60d5
renamed hash() to avoid linker collisions; inlined some hash functions
2009-02-20 23:42:54 +00:00
Sears Russell
4ce4491097
avoid extra calls to gettimeofday() when the log is not durable; set group commit to wait for 10msec, not 100...
2009-02-03 05:36:33 +00:00
Sears Russell
95e9158847
checkin partially implemented log based on file pool so that svn will compile
2009-01-05 21:57:33 +00:00
Sears Russell
93885a3ab4
removed static variables from logWriter.c
2008-12-29 23:05:13 +00:00
Sears Russell
5ba41bb3cb
renamed logWriter.[ch] to safeWrites.[ch]
2008-12-29 20:01:37 +00:00
Sears Russell
6f809b00e2
renamed open/deleteLogWriter
2008-12-29 19:46:51 +00:00
Sears Russell
97ab7670db
fixes major correctness/performance regression; test for when to force log to maintain WAL was reversed
2008-12-12 00:05:42 +00:00
Sears Russell
32950b2b98
fixed memory leaks and pointer aliasing bugs in lsmTree_iterator.
2008-12-05 00:08:46 +00:00
Sears Russell
32fae6795b
Fix memory leak in lruFast.c during Tdeinit().
2008-12-04 23:07:07 +00:00
Sears Russell
79d1512a5e
fixed problem in lsm tree recovery; it was not updating the lsm tree header when passing C1 into C2's merger thread. Then C2 freed C1, and C1 pointed to uninitialized data.
2008-12-04 09:22:17 +00:00
Sears Russell
e4341e10b9
partially fixed rose recovery; clean shutdowns now work
2008-12-04 04:12:47 +00:00
Sears Russell
c6564e67c7
documentation update; eliminated some dead code
2008-12-02 19:39:20 +00:00
Sears Russell
1383a42206
documentation update; made slottedFlush, etc.. static
2008-12-02 19:38:49 +00:00
Sears Russell
78a72d81f3
build readonlyhash; fix compile error from nightly builds
2008-12-02 00:33:45 +00:00
Sears Russell
ddc93caeae
do not use group commit with non-durable transactions
2008-12-01 23:22:38 +00:00
Sears Russell
2dcc6598d2
added support for softcommit, and for compile / runtime configuration of stasis log + storefile locations
2008-12-01 22:45:32 +00:00
Sears Russell
17d4bb3ed4
log refactoring
2008-12-01 19:48:59 +00:00
Sears Russell
77b24a991d
- Arrange for buffer manager writback to use group commit
...
- Only call correct log force when log_to_mem is enabled.
2008-12-01 04:28:46 +00:00
Sears Russell
1cddd8ab8c
remove ancient obsolete file
2008-12-01 04:24:24 +00:00
Sears Russell
e22c35a1b5
fix lsm iterator data corruption bug
2008-11-26 22:39:48 +00:00
Sears Russell
6a5e7f5589
Fix two problems in lsmTree:
...
- rewrite lookup() to be simpler, and fixed a few bugs
- was keeping node records around after pages were released
2008-11-26 07:01:43 +00:00
Sears Russell
15a097a100
sort of compiles under macos now
2008-11-25 01:19:36 +00:00
Sears Russell
11082997d8
revert accidentally committed files
2008-11-24 23:43:26 +00:00
Sears Russell
a321ba6e4e
handle null lsmIiterator_ gracefully
2008-11-24 23:41:11 +00:00
Sears Russell
09641257ad
fixed memory leak
2008-11-24 07:35:59 +00:00
Sears Russell
2b63991014
preliminary (and largely untested) support for opening LSM-tree iterators starting at a given tuple
2008-11-24 01:32:35 +00:00