Examples of countObsoleteNode()


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

            if (!DbLsn.isTransientOrNull(item.oldLsn)) {
                if (context.obsoleteDupsAllowed) {
                    tracker.countObsoleteNodeDupsAllowed
                        (item.oldLsn, entryType, item.oldSize, context.nodeDb);
                } else {
                    tracker.countObsoleteNode
                        (item.oldLsn, entryType, item.oldSize, context.nodeDb);
                }
            }

            /* Count auxOldLsn for same database; no specified size. */
 
View Full Code Here

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

            if (!DbLsn.isTransientOrNull(item.auxOldLsn)) {
                if (context.obsoleteDupsAllowed) {
                    tracker.countObsoleteNodeDupsAllowed
                        (item.auxOldLsn, entryType, 0, context.nodeDb);
                } else {
                    tracker.countObsoleteNode
                        (item.auxOldLsn, entryType, 0, context.nodeDb);
                }
            }

            /*
 
View Full Code Here

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

            context.packedObsoleteInfo.countObsoleteInfo
                (tracker, context.nodeDb);
        }
        if (context.obsoleteWriteLockInfo != null) {
            for (WriteLockInfo info : context.obsoleteWriteLockInfo) {
                tracker.countObsoleteNode(info.getAbortLsn(),
                                          null /*type*/,
                                          info.getAbortLogSize(),
                                          info.getAbortDb());
            }
        }
View Full Code Here

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

                                   int size,
                                   DatabaseImpl nodeDb,
                                   boolean countExact) {
        UtilizationTracker tracker = envImpl.getUtilizationTracker();
        if (countExact) {
            tracker.countObsoleteNode(lsn, type, size, nodeDb);
        } else {
            tracker.countObsoleteNodeInexact(lsn, type, size, nodeDb);
        }
    }
View Full Code Here

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

    DbLsn.longToLsn((Long) fileSummaryLsns.get(logFileNum));
            int cmpFsLsnToLogLsn =
    (fileSummaryLsn != DbLsn.NULL_LSN) ?
    DbLsn.compareTo(fileSummaryLsn, logLsn) : -1;
            if (cmpFsLsnToLogLsn < 0) {
                tracker.countObsoleteNode(logLsn, null);
            }
        }

        /* Was the LN found in the tree? */
        if (treeLsn != DbLsn.NULL_LSN) {
View Full Code Here

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

        DbLsn.longToLsn((Long) fileSummaryLsns.get(oldLsnFile));
                int cmpOldFsLsnToNewLsn =
        (oldFsLsn != DbLsn.NULL_LSN) ?
        DbLsn.compareTo(oldFsLsn, newLsn) : -1;
                if (cmpOldFsLsnToNewLsn < 0) {
                    tracker.countObsoleteNode(oldLsn, null);
                }
            }

            /*
             * If the logLsn is equal to or precedes the treeLsn and the entry
View Full Code Here

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

        /*
         * Count the logLsn as obsolete if it follows the FileSummaryLN for the
         * file of its Lsn.
         */
        if (cmpFsLsnToLogLsn < 0) {
            tracker.countObsoleteNode(logLsn, null);
        }

        /*
         * Consider the latest LSN for the given node that precedes the
         * FileSummaryLN for the file of its LSN.  Count this LSN as obsolete
View Full Code Here

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

                /*
                 * We encountered a new file number and the FsLsn follows the
                 * logLsn.
                 */
                if (!ln.isDeleted()) {
                    tracker.countObsoleteNode(logLsn, null);
                }
                /* Don't count this file again. */
                countedFileSummaries.put(txnNodeId, logFileNum);
            }
        }
View Full Code Here

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

       
        UtilizationTracker tracker = envImpl.getUtilizationTracker();

        for (int i = 0; i < lsnList.size(); i += 1) {
            Long offset = (Long) lsnList.get(i);
            tracker.countObsoleteNode(offset.longValue(), LogEntryType.LOG_IN);
        }
    }

    /* For unit testing only. */
    public void setReadHook(TestHook hook) {
View Full Code Here

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

       
        UtilizationTracker tracker = envImpl.getUtilizationTracker();

        for (int i = 0; i < lsnList.size(); i += 1) {
            Long offset = (Long) lsnList.get(i);
            tracker.countObsoleteNode(offset.longValue(), LogEntryType.LOG_IN);
        }
    }

    /* For unit testing only. */
    public void setReadHook(TestHook hook) {
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.