Examples of countObsoleteNodeInexact()


Examples of com.sleepycat.je.cleaner.LocalUtilizationTracker.countObsoleteNodeInexact()

                 * of the root IN as obsolete.
                 */
                LocalUtilizationTracker localTracker =
                    new LocalUtilizationTracker(envImpl);
                if (rootLsn != DbLsn.NULL_LSN) {
                    localTracker.countObsoleteNodeInexact
                        (rootLsn, LogEntryType.LOG_IN, 0, this);
                }

                /* Fetch LNs to count LN sizes only if so configured. */
                boolean fetchLNSize =
View Full Code Here

Examples of com.sleepycat.je.cleaner.LocalUtilizationTracker.countObsoleteNodeInexact()

                 * of the root IN as obsolete.
                 */
                LocalUtilizationTracker localTracker =
                    new LocalUtilizationTracker(envImpl);
                if (rootLsn != DbLsn.NULL_LSN) {
                    localTracker.countObsoleteNodeInexact
                        (rootLsn, LogEntryType.LOG_IN, 0, this);
                }

                /* Fetch LNs to count LN sizes only if so configured. */
                boolean fetchLNSize =
View Full Code Here

Examples of com.sleepycat.je.cleaner.UtilizationTracker.countObsoleteNodeInexact()

                 * LN deletions are obsolete immediately.  Inexact counting is
                 * used to save resources because the cleaner knows that all
                 * deleted LNs are obsolete.
                 */
                if (item.entry.isDeleted()) {
                    tracker.countObsoleteNodeInexact
                        (currentLsn, entryType, entrySize, context.nodeDb);
                }

                /*
                 * This entry must be marshalled within the log write latch.
View Full Code Here

Examples of com.sleepycat.je.cleaner.UtilizationTracker.countObsoleteNodeInexact()

                                   boolean countExact) {
        UtilizationTracker tracker = envImpl.getUtilizationTracker();
        if (countExact) {
            tracker.countObsoleteNode(lsn, type, size, nodeDb);
        } else {
            tracker.countObsoleteNodeInexact(lsn, type, size, nodeDb);
        }
    }

    /**
     * A flavor of countObsoleteNode which does not fire an assert if the
View Full Code Here

Examples of com.sleepycat.je.cleaner.UtilizationTracker.countObsoleteNodeInexact()

                    /*
                     * logLsn follows the FileSummaryLN of the abortLsn.  The
                     * abortLsn is only an approximation of the prior LSN, so
                     * use inexact counting.
                     */
                    tracker.countObsoleteNodeInexact(abortLsn, null);

                    /* Don't count this abortLsn (this node) again. */
                    countedAbortLsnNodes.add(txnNodeId);
                }
            }
View Full Code Here

Examples of com.sleepycat.je.cleaner.UtilizationTracker.countObsoleteNodeInexact()

                /*
                 * Use inexact counting to avoid the memory overhead of
                 * tracking LSNs for every record in an obsolete database.
                 */
                tracker.countObsoleteNodeInexact(lsn, null);
                status = DbInternal.retrieveNext
                    (cursor, key, foundData, LockMode.READ_UNCOMMITTED,
                     GetMode.NEXT);
            }
        } finally {
View Full Code Here

Examples of com.sleepycat.je.cleaner.UtilizationTracker.countObsoleteNodeInexact()

            } else {

                UtilizationTracker snapshot = new UtilizationTracker(envImpl);

                /* Start by recording the lsn of the root IN as obsolete. */
                snapshot.countObsoleteNodeInexact(rootLsn,
                                                  LogEntryType.LOG_IN);
       

                /* Use the tree walker to visit every child lsn in the tree. */
                ObsoleteProcessor obsoleteProcessor =
View Full Code Here

Examples of com.sleepycat.je.cleaner.UtilizationTracker.countObsoleteNodeInexact()

                    /*
                     * logLsn follows the FileSummaryLN of the abortLsn.  The
                     * abortLsn is only an approximation of the prior LSN, so
                     * use inexact counting.
                     */
                    tracker.countObsoleteNodeInexact(abortLsn, null);

                    /* Don't count this abortLsn (this node) again. */
                    countedAbortLsnNodes.add(txnNodeId);
                }
            }
View Full Code Here

Examples of com.sleepycat.je.cleaner.UtilizationTracker.countObsoleteNodeInexact()

                 * LN deletions are obsolete immediately.  Inexact counting is
                 * used to save resources because the cleaner knows that all
                 * deleted LNs are obsolete.
                 */
                if (item.entry.isDeleted()) {
                    tracker.countObsoleteNodeInexact
                        (currentLsn, entryType, entrySize, context.nodeDb);
                }

                /*
                 * This entry must be marshalled within the log write latch.
View Full Code Here

Examples of com.sleepycat.je.cleaner.UtilizationTracker.countObsoleteNodeInexact()

                                   boolean countExact) {
        UtilizationTracker tracker = envImpl.getUtilizationTracker();
        if (countExact) {
            tracker.countObsoleteNode(lsn, type, size, nodeDb);
        } else {
            tracker.countObsoleteNodeInexact(lsn, type, size, nodeDb);
        }
    }

    /**
     * A flavor of countObsoleteNode which does not fire an assert if the
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.