Examples of releaseLatch()


Examples of com.sleepycat.je.tree.BIN.releaseLatch()

                DatabaseImpl db = dbTree.getDb
                    (binRef.getDatabaseId(), lockTimeout, dbCache);
                BIN bin = searchForBIN(db, binRef);
                if (bin != null) {
                    bin.verifyCursors();
                    bin.releaseLatch();
                }
            }
        } finally {
            dbTree.releaseDbs(dbCache);
        }
View Full Code Here

Examples of com.sleepycat.je.tree.BIN.releaseLatch()

            BIN waitingOn = bin;
            waitingOn.latch(cacheMode);
            if (bin == waitingOn) {
                return bin;
            }
            waitingOn.releaseLatch();
        }

        return null;
    }
View Full Code Here

Examples of com.sleepycat.je.tree.BIN.releaseLatch()

        throws DatabaseException {

        BIN abin = latchBIN();
        if (abin != null) {
            abin.removeCursor(this);
            abin.releaseLatch();
        }
    }

    public void dumpTree() {
        databaseImpl.getTree().dump();
View Full Code Here

Examples of com.sleepycat.je.tree.BIN.releaseLatch()

                (env, "com.sleepycat.je.cleaner.Cleaner",
                 "processLN", "Exception thrown: ", DBE);
            throw DBE;
        } finally {
            if (bin != null) {
                bin.releaseLatch();
            }

            if (locker != null) {
                locker.operationEnd();
            }
View Full Code Here

Examples of com.sleepycat.je.tree.BIN.releaseLatch()

                               " was found in tree.");
            return false;
        } finally {
            env.getDbTree().releaseDb(db);
            if (bin != null) {
                bin.releaseLatch();
            }
        }
    }

    /**
 
View Full Code Here

Examples of com.sleepycat.je.tree.BIN.releaseLatch()

            }
            return;

        } finally {
            if (bin != null) {
                bin.releaseLatch();
            }

            if (processedHere) {
                cleaner.logFine(Cleaner.CLEAN_LN, ln, logLsn,
                                completed, obsolete, false /*migrated*/);
 
View Full Code Here

Examples of com.sleepycat.je.tree.BIN.releaseLatch()

             */
            treeBin.setDirty(true);
            nBINDeltasMigratedThisRun++;

        } finally {
            treeBin.releaseLatch();
        }
    }

    /**
     * If an IN is still in use in the in-memory tree, dirty it. The checkpoint
View Full Code Here

Examples of com.sleepycat.je.tree.BIN.releaseLatch()

     */
                if (parentDIN != null) {
                    parentDIN.releaseLatch();
                    parentDIN = null;
                }
                bin.releaseLatch();
    long abortLsn = locker.getOwnerAbortLsn(nodeId);
    if (abortLsn != DbLsn.NULL_LSN &&
        DbLsn.compareTo(abortLsn, logLsn) > 0) {
        nLNsDeadThisRun++;
        obsolete = true;
View Full Code Here

Examples of com.sleepycat.je.tree.BIN.releaseLatch()

            System.err.println("lsn " + DbLsn.getNoFormatString(lsn)+
                               " was found in tree.");
            return false;
        } finally {
            if (bin != null) {
                bin.releaseLatch();
            }
        }
    }
}
View Full Code Here

Examples of com.sleepycat.je.tree.BIN.releaseLatch()

             * Reset the generation to 0 so this version of the BIN, which gets
             * saved for unit test comparison, will compare to the version read
             * from the log, which is initialized to 0.
             */
            binDeltaBin.setGeneration(0);
            binDeltaBin.releaseLatch();
        }

        /* Flush the log, files. */
        logManager.flush();
        envImpl.getFileManager().clear();
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.