243244245246247248249250251252253
dsg.end() ; dsg = null ; return null ; } if (commit) dsg.commit() ; else dsg.abort() ; SysTxnState state = sConn.getTransMgrState() ; log.debug(state.toString()) ; log.debug("writer finish "+id+"/"+i) ;
220221222223224225226227228229230
assertTrue(dsgTxn.contains(q)) ; dsgTxn.add(q1) ; assertTrue(dsgTxn.contains(q1)) ; if ( nonTxnData ) assertTrue(dsgTxn.contains(q)) ; dsgTxn.commit() ; dsgTxn.end() ; // Should have flushed to disk. if ( nonTxnData ) assertTrue(dsg.contains(q)) ;
8384858687888990919293
public void store_0() { // Expel. StoreConnection sConn = getStoreConnection() ; DatasetGraphTxn dsgW1 = sConn.begin(ReadWrite.WRITE) ; dsgW1.commit() ; dsgW1.end() ; StoreConnection.release(sConn.getLocation()) ; StoreConnection sConn2 = getStoreConnection() ; }
979899100101102103104105106107
// Expel. StoreConnection sConn = getStoreConnection() ; DatasetGraphTxn dsgR1 = sConn.begin(ReadWrite.READ) ; DatasetGraphTxn dsgW1 = sConn.begin(ReadWrite.WRITE) ; dsgW1.add(q1) ; dsgW1.commit() ; dsgW1.end() ; dsgR1.end(); StoreConnection.release(sConn.getLocation()) ; sConn = null ;
133134135136137138139140141142143
{ StoreConnection sConn = getStoreConnection() ; DatasetGraphTxn dsgR1 = sConn.begin(ReadWrite.READ) ; DatasetGraphTxn dsgW1 = sConn.begin(ReadWrite.WRITE) ; dsgW1.add(q1) ; dsgW1.commit() ; dsgW1.end() ; dsgR1.end(); StoreConnection.release(sConn.getLocation()) ; sConn = null ;
143144145146147148149150151152153
sConn = null ; StoreConnection sConn2 = getStoreConnection() ; DatasetGraphTxn dsgW2 = sConn2.begin(ReadWrite.WRITE) ; dsgW2.add(q2) ; dsgW2.commit() ; dsgW2.end() ; DatasetGraphTxn dsgR2 = sConn2.begin(ReadWrite.READ) ; long x = Iter.count(dsgR2.find()) ; assertEquals(2, x) ;
180181182183184185186187188189190
DatasetGraphTxn dsgTxn = sConn.begin(ReadWrite.WRITE) ; dsgTxn.add(q1) ; assertTrue(dsgTxn.contains(q1)) ; dsgTxn.commit() ; dsgTxn.end() ; assertTrue(sConn.getBaseDataset().contains(q1)) ; StoreConnection.release(loc) ;
401402403404405406407408409410411
StoreConnection sConn = StoreConnection.make(LOC) ; DatasetGraphTxn dsg = sConn.begin(ReadWrite.WRITE) ; dsg.add(q1) ; dsg.add(q2) ; initCount = 2 ; dsg.commit() ; dsg.end() ; } @AfterClass public static void afterClass() {}
338339340341342343344345346347348
dsg = null ; return null ; } if (commit) { dsg.commit() ; txn("C", dsg) ; } else { dsg.abort() ;