-
Notifications
You must be signed in to change notification settings - Fork 700
Open
Labels
improvementImprovements on everythingImprovements on everything
Description
What would you like to be improved?
The following code will access and check Metalake twice, as the method catalogInUse will check metalake again.
gravitino/core/src/main/java/org/apache/gravitino/catalog/CatalogManager.java
Lines 562 to 567 in bd41384
| checkMetalake(metalakeIdent, store); | |
| try { | |
| if (catalogInUse(store, ident)) { | |
| return null; | |
| } |
gravitino/core/src/main/java/org/apache/gravitino/catalog/CatalogManager.java
Lines 867 to 870 in bd41384
| private boolean catalogInUse(EntityStore store, NameIdentifier ident) | |
| throws NoSuchMetalakeException, NoSuchCatalogException { | |
| NameIdentifier metalakeIdent = NameIdentifier.of(ident.namespace().levels()); | |
| return metalakeInUse(store, metalakeIdent) && getCatalogInUseValue(store, ident); |
How should we improve?
No response
Metadata
Metadata
Assignees
Labels
improvementImprovements on everythingImprovements on everything