VIVO-588 Fixed a typo to fix the deadlocked threads.

This commit is contained in:
j2blake 2013-12-01 19:30:57 -05:00
parent 60102fbf28
commit f981fd2c53

View file

@ -537,13 +537,14 @@ public class PageDaoJena extends JenaBaseDao implements PageDao {
List<String> actions = new ArrayList<String>(); List<String> actions = new ArrayList<String>();
Model dModel = getOntModelSelector().getDisplayModel(); Model dModel = getOntModelSelector().getDisplayModel();
dModel.enterCriticalSection(false);
try{ try{
QueryExecution qe = QueryExecution qe =
QueryExecutionFactory.create( requiredActionsQuery, dModel, initialBindings); QueryExecutionFactory.create( requiredActionsQuery, dModel, initialBindings);
actions = executeQueryToList( qe ); actions = executeQueryToList( qe );
qe.close(); qe.close();
}finally{ }finally{
dModel.enterCriticalSection(false); dModel.leaveCriticalSection();
} }
return actions; return actions;
} }