Skip to content

Commit

Permalink
chore: load driver version in graph store for hstore
Browse files Browse the repository at this point in the history
  • Loading branch information
VGalaxies committed Sep 10, 2023
1 parent 9d11f9d commit d818aef
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,14 @@ public boolean exists() {
}

public boolean checkVersion() {
if (this.storeProvider.isHstore()) { // skip for hstore now
return true;
BackendStore store;
if (this.storeProvider.isHstore()) {
store = this.storeProvider.loadGraphStore(this.config);
} else {
store = this.storeProvider.loadSystemStore(this.config);
}
String driverVersion = this.storeProvider.driverVersion();
String storedVersion = this.storeProvider.loadSystemStore(this.config)
.storedVersion();
String storedVersion = store.storedVersion();
if (!driverVersion.equals(storedVersion)) {
LOG.error("The backend driver version '{}' is inconsistent with " +
"the data version '{}' of backend store for graph '{}'",
Expand Down

0 comments on commit d818aef

Please sign in to comment.