Package com.sleepycat.je.dbi

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


            nextNode = scanIter.mark();
            finished = true;

        } finally {
            nNodesScanned += nNodesScannedThisRun;
            inList.releaseMajorLatch();
      Tracer.trace(detailedTraceLevel, envImpl,
                         "Evictor: pass=" + nEvictPasses +
                         " finished=" + finished +
                         " source=" + source +
                         " requiredEvictBytes=" +
View Full Code Here


                boolean deleteFinished = false;
                inList.latchMajor();
                try {
                    deleteFinished = tree.deleteDup(idKey, dupKey, tracker);
                } finally {
                    inList.releaseMajorLatch();
                }

                if (deleteFinished) {
                    processedBinsThisRun++;
                } else {
View Full Code Here

                boolean deletedRoot = false;
                inList.latchMajor();
                try {
                    deletedRoot = tree.delete(idKey, tracker);
                } finally {
                    inList.releaseMajorLatch();
                }

                /*
                 * modifyDb will grab locks and we can't have the INList Major
                 * Latch held while it tries to acquire locks.  deletedRoot
View Full Code Here

                if (in instanceof BIN) {
                    in.compress(null, true);
                }
            }
        } finally {
            inList.releaseMajorLatch();
        }
    }

    /*
     * Fake eviction daemon by call BIN.evictLNs explicitly on all
View Full Code Here

                    assertTrue(bin.evictLNs() > 0);
                    bin.releaseLatch();
                }
            }
        } finally {
            inList.releaseMajorLatch();
        }
    }


    private DatabaseEntry getEntry(byte val, int size) {
View Full Code Here

                } finally {
                    in.releaseLatch();
                }
            }
        } finally {
            inList.releaseMajorLatch();
        }
        return total;
    }

    /**
 
View Full Code Here

            }

            nCandidates++;
        }

        inList.releaseMajorLatch();

        expected.clear();
        if (target != null) {
            expected.add(new Long(target.getNodeId()));
        }
View Full Code Here

            while (iter.hasNext()) {
                IN in = (IN) iter.next();
                System.out.println("in nodeId=" + in.getNodeId());
            }
        } finally {
            inList.releaseMajorLatch();
        }
    }
}
View Full Code Here

            nextNode = scanIter.mark();
            finished = true;

        } finally {
            nNodesScanned += nNodesScannedThisRun;
            inList.releaseMajorLatch();

            Logger logger = envImpl.getLogger();
            if (logger.isLoggable(detailedTraceLevel)) {
                /* Ugh, only create trace message when logging. */
                Tracer.trace(detailedTraceLevel, envImpl,
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.