Vladsz83 commented on code in PR #11467:
URL: https://github.com/apache/ignite/pull/11467#discussion_r1735231291


##########
modules/core/src/main/java/org/apache/ignite/internal/processors/query/schema/management/SchemaManager.java:
##########
@@ -1087,6 +1146,29 @@ public Collection<TableDescriptor> tablesForCache(String 
cacheName) {
         }
     }
 
+    /**
+     * Find view by its identifier.
+     *
+     * @param schemaName Schema name.
+     * @param viewName View name.
+     * @return View or {@code null} if none found.
+     */
+    @Nullable public ViewDescriptor view(String schemaName, String viewName) {
+        lock.readLock().lock();

Review Comment:
   Used only under a write lock



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