Skip to content

Commit

Permalink
fix: use same urn class in both read and write path in SCSI (#103) (#106
Browse files Browse the repository at this point in the history
)

* [scsi] provision to substitute urn class

* use same urn class in write path as read for SCSI
  • Loading branch information
jywadhwani authored Jun 14, 2021
1 parent 9c709b2 commit e5afccf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ private void updateUrnInLocalIndex(@Nonnull URN urn) {

final Map<String, Object> pathValueMap = _urnPathExtractor.extractPaths(urn);
pathValueMap.forEach(
(path, value) -> saveSingleRecordToLocalIndex(urn, urn.getClass().getCanonicalName(), path, value));
(path, value) -> saveSingleRecordToLocalIndex(urn, _urnClass.getCanonicalName(), path, value));
}

private <ASPECT extends RecordTemplate> void updateAspectInLocalIndex(@Nonnull URN urn, @Nonnull ASPECT newValue) {
Expand Down

0 comments on commit e5afccf

Please sign in to comment.