Skip to content

Commit

Permalink
Revert recent change to in-memory cache
Browse files Browse the repository at this point in the history
  • Loading branch information
rayokota committed Jun 26, 2024
1 parent c7b2d0d commit b169203
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ public void schemaDeleted(
addToSchemaHashToGuid(schemaKey, schemaValue);
for (SchemaReference ref : schemaValue.getReferences()) {
QualifiedSubject refSubject = QualifiedSubject.qualifySubjectWithParent(
tenant(), schemaKey.getSubject(), ref.getSubject(), true);
tenant(), schemaKey.getSubject(), ref.getSubject());
SchemaKey refKey = new SchemaKey(refSubject.toQualifiedSubject(), ref.getVersion());
Map<String, Map<SchemaKey, Set<Integer>>> ctxRefBy =
referencedBy.getOrDefault(tenant(), Collections.emptyMap());
Expand Down Expand Up @@ -226,7 +226,7 @@ public void schemaRegistered(
addToSchemaHashToGuid(schemaKey, schemaValue);
for (SchemaReference ref : schemaValue.getReferences()) {
QualifiedSubject refSubject = QualifiedSubject.qualifySubjectWithParent(
tenant(), schemaKey.getSubject(), ref.getSubject(), true);
tenant(), schemaKey.getSubject(), ref.getSubject());
SchemaKey refKey = new SchemaKey(refSubject.toQualifiedSubject(), ref.getVersion());
Map<String, Map<SchemaKey, Set<Integer>>> ctxRefBy =
referencedBy.computeIfAbsent(tenant(), k -> new ConcurrentHashMap<>());
Expand Down

0 comments on commit b169203

Please sign in to comment.