Skip to content

Commit

Permalink
Merge pull request #3160 from confluentinc/revert-inmemory-cache-change
Browse files Browse the repository at this point in the history
Revert recent change to in-memory cache
  • Loading branch information
rayokota committed Jun 26, 2024
2 parents c7b2d0d + b169203 commit b454815
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 b454815

Please sign in to comment.