acelyc111 commented on code in PR #1507:
URL: 
https://github.com/apache/incubator-pegasus/pull/1507#discussion_r1218953836


##########
src/runtime/ranger/ranger_resource_policy_manager.cpp:
##########
@@ -590,27 +601,24 @@ dsn::error_code 
ranger_resource_policy_manager::sync_policies_to_app_envs()
             
{dsn::replication::replica_envs::REPLICA_ACCESS_CONTROLLER_RANGER_POLICIES});
         bool is_policy_matched = false;
         for (const auto &policy : table_policies->second) {
-            if (policy.database_names.count(database_name) == 0) {
+            // IF this table does not match any database, its Ranger policies 
will be cleaned up.

Review Comment:
   ```suggestion
               // If this table does not match any database, its Ranger 
policies will be cleaned up.
   ```



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to