Skip to content

Commit

Permalink
fix dropped id when restoring indexlabel (#118)
Browse files Browse the repository at this point in the history
fixed: hugegraph-tools #81

Change-Id: I36a804fd2369e9d6ecc0f7317995300f6d9f4dc4
  • Loading branch information
zhoney authored Mar 24, 2021
1 parent abb1f2b commit bb65492
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ public IndexLabelV56(IndexLabel indexLabel) {
super(indexLabel.name);
E.checkArgument(indexLabel.rebuild,
"The rebuild of indexlabel must be true");
this.id = indexLabel.id();
this.baseType = indexLabel.baseType;
this.baseValue = indexLabel.baseValue;
this.indexType = indexLabel.indexType;
Expand All @@ -294,6 +295,7 @@ public IndexLabelV49(IndexLabel indexLabel) {
"The userdata of indexlabel must be empty");
E.checkArgument(indexLabel.rebuild,
"The rebuild of indexlabel must be true");
this.id = indexLabel.id();
this.baseType = indexLabel.baseType;
this.baseValue = indexLabel.baseValue;
this.indexType = indexLabel.indexType;
Expand Down

0 comments on commit bb65492

Please sign in to comment.