Modification count is used when generating unique names for the
resources. We should continue from the previous modification count
whenever creating new BTree object to work on.
refs #7690
Change-Id: I446af8ad22157a1c64c984071ae6c36cae374935
this.ownerRelation = ownerRelation;
this.nodeType = nodeType != null ? nodeType : DATA.BTreeNode;
this.t = t;
- this.mod = 0;
+ Long possibleMod = graph.getPossibleRelatedValue(tree, DATA.BTree_mod, Bindings.LONG);
+ this.mod = possibleMod != null ? possibleMod : 0;
this.cached = cached;
if (cached) {
this.beans = new HashMap<Resource, BTreeContentBean>();