Skip to content
Browse files

Fix store init with virtuoso backend

- make sure the store is initialized when system graphs are not yet loaded
  • Loading branch information...
1 parent ef1b163 commit 278378cf071720fd6b8d537b80f0b275ebe4ef87 @pfrischmuth pfrischmuth committed Jan 31, 2013
Showing with 9 additions and 0 deletions.
  1. +9 −0 library/Erfurt/App.php
View
9 library/Erfurt/App.php
@@ -948,6 +948,15 @@ public function getStore()
require_once 'Erfurt/Store.php';
$this->_store = new Erfurt_Store($storeOptions, $backend, $backendOptions, $schema);
+
+ // Make sure the store is initialized
+ try {
+ $this->_store->checkSetup();
+ } catch (Erfurt_Store_Exception $e) {
+ if ($e->getCode() != 20) {
+ throw $e;
+ }
+ }
}
return $this->_store;

0 comments on commit 278378c

Please sign in to comment.
Something went wrong with that request. Please try again.