Examples of commitNoSync()


Examples of com.sleepycat.je.Transaction.commitNoSync()

            assertEquals(1, IntegerBinding.entryToInt(key));
        }

        /* Close reader to allow writer to finish. */
        cursor.close();
        readerTxn.commitNoSync();
        waitForInsert();

        /* getPrevNoDup returns key 1. */
        readerTxn = env.beginTransaction(null, txnConfig);
        cursor = db.openCursor(readerTxn, null);
View Full Code Here

Examples of com.sleepycat.je.Transaction.commitNoSync()

            assertEquals(1, IntegerBinding.entryToInt(data));
        }

        /* Close reader to allow writer to finish. */
        cursor.close();
        readerTxn.commitNoSync();
        waitForInsert();

        /* getPrevNoDup returns {1,1}. */
        readerTxn = env.beginTransaction(null, txnConfig);
        cursor = db.openCursor(readerTxn, null);
View Full Code Here

Examples of com.sleepycat.je.Transaction.commitNoSync()

                fail();
            }
        }

        cursor.close();
        readerTxn.commitNoSync();
        closeEnv();
    }
   
    /**
     * Tests that searchKey returns SUCCESS when it must skip over a deleted
View Full Code Here

Examples of com.sleepycat.je.Transaction.commitNoSync()

        /* Search for key 1 -- should not return NOTFOUND. */
        assertEquals(OperationStatus.SUCCESS, searchKey(cursor, 1, 2));

        cursor.close();
        txn.commitNoSync();
        closeEnv();
    }

    /**
     * Performs getSearchKey on the given key, expects data to be zero.
View Full Code Here

Examples of com.sleepycat.je.Transaction.commitNoSync()

        } catch (DeadlockException e) {
            writerTxn.abort();
            throw e;
        }
        assertEquals(OperationStatus.SUCCESS, status);
        writerTxn.commitNoSync();
    }

    /**
     * Starts writer thread and waits for it to start the insert.
     */
 
View Full Code Here

Examples of com.sleepycat.je.Transaction.commitNoSync()

                    status = db.putNoDupData(writerTxn, key, data);
                } else {
                    status = db.putNoOverwrite(writerTxn, key, data);
                }
                assertEquals(OperationStatus.SUCCESS, status);
                writerTxn.commitNoSync();
                insertFinished = true;
            }
        };

        writerThread.start();
View Full Code Here

Examples of com.sleepycat.je.Transaction.commitNoSync()

        } catch (DeadlockException e) {
            fail();
        }

        cursor.close();
        readerTxn.commitNoSync();
        closeEnv();
    }
   
    public void testGetSearchKey_Success_Dup()
        throws DatabaseException, InterruptedException {
View Full Code Here

Examples of com.sleepycat.je.Transaction.commitNoSync()

        } catch (DeadlockException e) {
            fail();
        }

        cursor.close();
        readerTxn.commitNoSync();
        closeEnv();
    }
   
    public void testGetSearchKey_NotFound()
        throws DatabaseException, InterruptedException {
View Full Code Here

Examples of com.sleepycat.je.Transaction.commitNoSync()

            assertEquals(OperationStatus.SUCCESS, searchKey(cursor, 2));
        }

        /* Close reader to allow writer to finish. */
        cursor.close();
        readerTxn.commitNoSync();
        waitForInsert();

        /* getSearchKey returns key 2. */
        readerTxn = env.beginTransaction(null, txnConfig);
        cursor = db.openCursor(readerTxn, null);
View Full Code Here

Examples of com.sleepycat.je.Transaction.commitNoSync()

            assertEquals(OperationStatus.SUCCESS, searchKey(cursor, 1, 1));
        }

        /* Close reader to allow writer to finish. */
        cursor.close();
        readerTxn.commitNoSync();
        waitForInsert();

        /* getSearchKey returns {1,1}. */
        readerTxn = env.beginTransaction(null, txnConfig);
        cursor = db.openCursor(readerTxn, null);
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.