Strabon

changeset 57:92512d21b0d7

flush managers before predicate table creation (2nd case)
author Babis Nikolaou <charnik@di.uoa.gr>
date Fri Mar 16 00:55:27 2012 +0100 (2012-03-16)
parents bbd7bbc0921e
children c120517d858a
files generaldb/src/main/java/org/openrdf/sail/generaldb/managers/TripleTableManager.java
line diff
     1.1 --- a/generaldb/src/main/java/org/openrdf/sail/generaldb/managers/TripleTableManager.java	Thu Mar 15 18:46:16 2012 +0200
     1.2 +++ b/generaldb/src/main/java/org/openrdf/sail/generaldb/managers/TripleTableManager.java	Fri Mar 16 00:55:27 2012 +0100
     1.3 @@ -248,6 +248,7 @@
     1.4  	public synchronized String getTableName(Number pred)
     1.5  		throws SQLException
     1.6  	{
     1.7 +		flushManagers(); // charnik's addition
     1.8  		if (tables.containsKey(pred))
     1.9  			return tables.get(pred).getNameWhenReady();
    1.10  		if (tables.containsKey(OTHER_PRED))
    1.11 @@ -486,10 +487,9 @@
    1.12  	 */
    1.13  	public void flushManagers() {
    1.14  		try {
    1.15 -			hashes.flush();
    1.16 +			bnodes.flush();
    1.17  			uris.flush();
    1.18  			literals.flush();
    1.19 -			bnodes.flush();
    1.20  			
    1.21  		} catch (SQLException e) {
    1.22  			// TODO Auto-generated catch block