wu-sheng commented on code in PR #9689:
URL: https://github.com/apache/skywalking/pull/9689#discussion_r980189513


##########
oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/storage/model/StorageModels.java:
##########
@@ -250,6 +250,14 @@ private void retrieval(final Class<?> clazz,
             }
         }
 
+        if (clazz.isAnnotationPresent(SQLDatabase.Sharding.class)) {
+            SQLDatabase.Sharding sharding = 
clazz.getAnnotation(SQLDatabase.Sharding.class);

Review Comment:
   `SQLDatabase.Sharding.class` is present in the parent class. 
`FunctionCategory#doGetAnnotation` use a recursion to read **MeterFunction** 
annotation from parent class.



-- 
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