Skip to content

Commit

Permalink
fix(interactive): Fix Bugs in Dynamic Schema Fetching (#4176)
Browse files Browse the repository at this point in the history
  • Loading branch information
shirly121 authored Aug 22, 2024
1 parent be76439 commit 0de3c02
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,13 @@ private synchronized void syncMeta() {
"schema from remote: {}",
(meta == null) ? null : meta.getSchema().schemaJson());
GraphStatistics curStats;
// if the graph id is changed, we need to update the statistics
// if the graph id or schema version is changed, we need to update the statistics
if (this.currentState == null
|| !this.currentState.getGraphId().equals(meta.getGraphId())
|| this.currentState.getSnapshotId().getId() != meta.getSnapshotId().getId()) {
|| !this.currentState
.getSchema()
.getVersion()
.equals(meta.getSchema().getVersion())) {
this.statsState = StatsState.INITIALIZED;
curStats = null;
} else {
Expand Down

0 comments on commit 0de3c02

Please sign in to comment.