roryqi commented on code in PR #12577:
URL: https://github.com/apache/gravitino/pull/12577#discussion_r4056421598


##########
core/src/main/java/org/apache/gravitino/storage/relational/service/StatisticMetaService.java:
##########
@@ -107,4 +115,34 @@ public int deleteStatisticsByLegacyTimeline(long 
legacyTimeline, int limit) {
         StatisticMetaMapper.class,
         mapper -> mapper.deleteStatisticsByLegacyTimeline(legacyTimeline, 
limit));
   }
+
+  private void doWithSchemaWriteLockIfNeeded(
+      NameIdentifier identifier,
+      Entity.EntityType type,
+      NamespacedEntityId namespacedEntityId,
+      Runnable writeOperation) {
+    long[] namespaceIds = namespacedEntityId.namespaceIds();
+    Long schemaId;
+    switch (type) {

Review Comment:
   Do u consider the hierarichal schema case?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to