| List: | Falcon Storage Engine | « Previous MessageNext Message » | |
| From: | Jim Starkey | Date: | January 28 2009 8:26pm |
| Subject: | Another Idea for Transaction Lifetime Control | ||
| View as plain text | |||
Here's another idea. Define an "in-use" flag in the transaction
object. Before a scavenge, clear the in-use flag for transactions.
During scavenge, set the flag on every transaction referenced. At the
end of scavenge, purge all transaction that are a) committed and b) not
marked as in-use.
Since the flag is used exclusively by the scavenge thread, no locking is
required.
--
Jim Starkey
President, NimbusDB, Inc.
978 526-1376
