| Modifier and Type | Field and Description |
|---|---|
| private AccessFactory | access_factory
Fields of the class |
| private PageKey |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: Returns Serviceable.DONE when work has completed, or returns Serviceable.REQUEUE if work needs to be requeued.the context manager started by the post commit daemon contextMgr)Implements org. perform the work described in the postcommit work. |
| private final void | purgeCommittedDeletes(HeapController
The heap, already opened. heap_control, long number of page to look for committed deletes. pageno)Reclaim space taken of committed deleted rows or aborted inserted rows. |
| public boolean | Returns: false, this work should not be serviced ASAPImplements org. The urgency of this post commit work. |
| public boolean | serviceImmediately()
Implements org. If this work should be done immediately on the user thread then return true. |
| access_factory | back to summary |
|---|---|
| private AccessFactory access_factory Fields of the class | |
| page_key | back to summary |
|---|---|
| private PageKey page_key | |
| HeapPostCommit | back to summary |
|---|---|
| pack-priv HeapPostCommit(AccessFactory access_factory, PageKey page_key) Constructors for This class: | |
| performWork | back to summary |
|---|---|
| public int performWork(ContextManager contextMgr) throws StandardException Implements org. perform the work described in the postcommit work. In this implementation the only work that can be executed by this post commit processor is this class itself.
| |
| purgeCommittedDeletes | back to summary |
|---|---|
| private final void purgeCommittedDeletes(HeapController heap_control, long pageno) throws StandardException Reclaim space taken of committed deleted rows or aborted inserted rows. This routine assumes it has been called by an internal transaction which has performed no work so far, and that it has an exclusive intent table lock. It will attempt obtain exclusive row locks on rows marked deleted, where successful those rows can be reclaimed as they must be "committed deleted" or "aborted inserted" rows. This routine will latch the page and hold the latch due to interface requirement from Page.purgeAtSlot.
| |
| serviceASAP | back to summary |
|---|---|
| public boolean serviceASAP() Implements org. The urgency of this post commit work. This determines where this Serviceable is put in the post commit queue. Post commit work in the heap can be safely delayed until there is not user work to do.
| |
| serviceImmediately | back to summary |
|---|---|
| public boolean serviceImmediately() Implements org. Doc from org. If this work should be done immediately on the user thread then return true. If it doesn't make any difference if this work is done on a the user thread immediately or if it is performed by another thread asynchronously later, then return false.
| |