Question about uvm_config_db

I have two doubts about the uvm_config_db

  1. when i have the following line in my code uvm_resource_options::turn_off_auditing(); and have uvm_config_db::set(…); the uvm_config_db::get() is returning a null, looked at the uvm source code and could see that write task of uvm_resource class present in uvm_resource.svh file has the following line

if(uvm_resource_options::is_auditing()) begin

and wanted to know why this is required? with turning off auditing uvm_config_db::set() has no meaning and this looks strange to me any comments?

  1. i also want to know why uvm_config_db::set method add the details to the uvm_pool instance and also to uvm_resource_pool, anyway the get method of uvm_config_db uses the uvm_resource_pool to grep for the resource, is there anywhere the uvm_pool instance is used?