Examples of modifyDbRoot()


Examples of com.sleepycat.je.dbi.DbTree.modifyDbRoot()

             * Update the tree's owner, whether it's the env root or the
             * dbmapping tree.
             */
            if (flushed) {
                DbTree dbTree = envImpl.getDbTree();
                dbTree.modifyDbRoot(db);
                fstats.nFullINFlushThisRun++;
                fstats.nFullINFlush++;
            }
        }

View Full Code Here

Examples of com.sleepycat.je.dbi.DbTree.modifyDbRoot()

                    !dbId.equals(DbTree.NAME_DB_ID)) {
                    DatabaseImpl db = dbTree.getDb(dbId);
                    try {
                        if (db != null &&
                            logManager.removeDbFileSummaries(db, fileNums)) {
                            dbTree.modifyDbRoot(db);
                        }
                    } finally {
                        dbTree.releaseDb(db);
                    }
                }
View Full Code Here

Examples of com.sleepycat.je.dbi.DbTree.modifyDbRoot()

                            /*
                             * Because we're using dirty-read, silently do
                             * nothing if the DB does not exist
                             * (mustExist=false).
                             */
                            dbTree.modifyDbRoot
                                (db, DbLsn.NULL_LSN /*ifBeforeLsn*/,
                                 false /*mustExist*/);
                        }
                    }
                    return true;
View Full Code Here

Examples of com.sleepycat.je.dbi.DbTree.modifyDbRoot()

                final DatabaseImpl db = dbTree.getDb(dbId);
                try {
                    if (db != null &&
                        !db.isDeleted() &&
                        db.isCheckpointNeeded()) {
                        dbTree.modifyDbRoot
                            (db, checkpointStart /*ifBeforeLsn*/,
                             true /*mustExist*/);
                    }
                } finally {
                    dbTree.releaseDb(db);
View Full Code Here

Examples of com.sleepycat.je.dbi.DbTree.modifyDbRoot()

             * Update the tree's owner, whether it's the env root or the
             * dbmapping tree.
             */
            if (flushed) {
                DbTree dbTree = targetRef.db.getDbEnvironment().getDbMapTree();
                dbTree.modifyDbRoot(targetRef.db);
                nFullINFlushThisRun++;
                nFullINFlush++;
            }
        }

View Full Code Here

Examples of com.sleepycat.je.dbi.DbTree.modifyDbRoot()

            if (result.parent == null) {
                /* It's null -- we actually deleted the root. */
                tree.withRootLatched(new RootDeleter(tree));
                DbTree dbTree = db.getDbEnvironment().getDbMapTree();
                dbTree.modifyDbRoot(db);
                traceRootDeletion(Level.FINE, db);
                deleted = true;
            } else if (result.exactParentFound) {
                /* Exact match was found -- delete the parent entry. */
                found = true;
View Full Code Here

Examples of com.sleepycat.je.dbi.DbTree.modifyDbRoot()

                 * job now.
                 */

                if (deletedRoot) {
                    DbTree dbTree = env.getDbMapTree();
                    dbTree.modifyDbRoot(dbImpl);
                    RecoveryManager.traceRootDeletion(Level.FINE, dbImpl);
                }
                processedBinsThisRun++;
            }
        } catch (NodeNotEmptyException NNEE) {
View Full Code Here

Examples of com.sleepycat.je.dbi.DbTree.modifyDbRoot()

             * Update the tree's owner, whether it's the env root or the
             * dbmapping tree.
             */
            if (flushed) {
                DbTree dbTree = targetRef.db.getDbEnvironment().getDbMapTree();
                dbTree.modifyDbRoot(targetRef.db);
                nFullINFlushThisRun++;
                nFullINFlush++;
            }
        }

View Full Code Here

Examples of com.sleepycat.je.dbi.DbTree.modifyDbRoot()

            if (result.parent == null) {
                /* It's null -- we actually deleted the root. */
                tree.withRootLatchedExclusive(new RootDeleter(tree));
                DbTree dbTree = db.getDbEnvironment().getDbMapTree();
                dbTree.modifyDbRoot(db);
                traceRootDeletion(Level.FINE, db);
                deleted = true;
            } else if (result.exactParentFound) {
                /* Exact match was found -- delete the parent entry. */
                found = true;
View Full Code Here

Examples of com.sleepycat.je.dbi.DbTree.modifyDbRoot()

                /*
                 * modifyDbRoot will grab locks and we can't have the INList
                 * latches or root latch held while it tries to acquire locks.
                 */
                DbTree dbTree = envImpl.getDbMapTree();
                dbTree.modifyDbRoot(database);
                RecoveryManager.traceRootDeletion(Level.FINE, database);
            }

            /*
             * Count obsolete nodes after logging the delete. We can do
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.