Examples of latchMajor()


Examples of com.sleepycat.je.dbi.INList.latchMajor()

        throws DatabaseException {

        SortedMap newDirtyMap = new TreeMap();

        INList inMemINs = envImpl.getInMemoryINs();
        inMemINs.latchMajor();

        /*
   * Opportunistically recalculate the environment wide memory count.
   * Incurs no extra cost because we're walking the IN list anyway.  Not
   * the best in terms of encapsulation as prefereably all memory
View Full Code Here

Examples of com.sleepycat.je.dbi.INList.latchMajor()

        /* Evict utilization tracking info without holding the INList latch. */
        evictBytes += envImpl.getUtilizationTracker().evictMemory();

        INList inList = envImpl.getInMemoryINs();
        inList.latchMajor();
        int inListStartSize = inList.getSize();

        try {
            /*
             * Setup the round robin iterator. Note that because critical
View Full Code Here

Examples of com.sleepycat.je.dbi.INList.latchMajor()

                 * resident cursors, and in that case, we would not be able
                 * to remove the whole duplicate tree and DIN root. In that
                 * case, we'd requeue.
                 */
                boolean deleteFinished = false;
                inList.latchMajor();
                try {
                    deleteFinished = tree.deleteDup(idKey, dupKey, tracker);
                } finally {
                    inList.releaseMajorLatch();
                }
View Full Code Here

Examples of com.sleepycat.je.dbi.INList.latchMajor()

                    requeued = true;
                    cursorsBinsThisRun++;
                }
            } else {
                boolean deletedRoot = false;
                inList.latchMajor();
                try {
                    deletedRoot = tree.delete(idKey, tracker);
                } finally {
                    inList.releaseMajorLatch();
                }
View Full Code Here

Examples of com.sleepycat.je.dbi.INList.latchMajor()

     */
    private void compress()
        throws DatabaseException {

        INList inList = DbInternal.envGetEnvironmentImpl(env).getInMemoryINs();
        inList.latchMajor();
        try {
            Iterator iter = inList.iterator();
            while (iter.hasNext()) {
                IN in = (IN) iter.next();
                if (in instanceof BIN) {
View Full Code Here

Examples of com.sleepycat.je.dbi.INList.latchMajor()

        boolean evictByLruOnly = envImpl.getConfigManager().getBoolean
            (EnvironmentParams.EVICTOR_LRU_ONLY);

        INList inList = envImpl.getInMemoryINs();
        inList.latchMajor();

        IN nextNode = evictor.getNextNode();
        if (nextNode == null) {
            nextNode = (IN) inList.first();
        }
View Full Code Here

Examples of com.sleepycat.je.dbi.INList.latchMajor()

     */
    private void evict()
        throws DatabaseException {

        INList inList = DbInternal.envGetEnvironmentImpl(env).getInMemoryINs();
        inList.latchMajor();
        try {
            Iterator iter = inList.iterator();
            while (iter.hasNext()) {
                IN in = (IN) iter.next();
                if (in instanceof BIN) {
View Full Code Here

Examples of com.sleepycat.je.dbi.INList.latchMajor()

    public static long tallyNodeMemUsage(EnvironmentImpl envImpl)
        throws DatabaseException {

        INList inList = envImpl.getInMemoryINs();
        inList.latchMajor();
        long total = 0;
        try {
            Iterator iter = inList.iterator();
            while (iter.hasNext()) {
                IN in = (IN) iter.next();
View Full Code Here

Examples of com.sleepycat.je.dbi.INList.latchMajor()

    private void dumpINList()
        throws DatabaseException {
      
        EnvironmentImpl envImpl = DbInternal.envGetEnvironmentImpl(env);
        INList inList = envImpl.getInMemoryINs();
        inList.latchMajor();
        try {
            Iterator iter = inList.iterator();
            while (iter.hasNext()) {
                IN in = (IN) iter.next();
                System.out.println("in nodeId=" + in.getNodeId());
View Full Code Here

Examples of com.sleepycat.je.dbi.INList.latchMajor()

        /* Evict utilization tracking info without holding the INList latch. */
        evictBytes += envImpl.getUtilizationTracker().evictMemory();

        INList inList = envImpl.getInMemoryINs();
        inList.latchMajor();
        int inListStartSize = inList.getSize();

        try {

            /*
 
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.