File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -96,11 +96,26 @@ def disable_dynamic_buffer(dvs):
9696 # restart daemon
9797 dvs .runcmd ("supervisorctl restart buffermgrd" )
9898
99+ # Remove all the PGs referencing non-default zero profiles
100+ pgs = app_db .get_keys ('BUFFER_PG_TABLE' )
101+ for key in pgs :
102+ pg = app_db .get_entry ('BUFFER_PG_TABLE' , key )
103+ if re .search (zero_profile_name_pattern , pg ['profile' ]):
104+ app_db .delete_entry ('BUFFER_PG_TABLE' , key )
105+
106+ # Remove all the Qs referencing non-default zero profiles
107+ qs = app_db .get_keys ('BUFFER_QUEUE_TABLE' )
108+ for key in qs :
109+ q = app_db .get_entry ('BUFFER_QUEUE_TABLE' , key )
110+ if re .search (zero_profile_name_pattern , q ['profile' ]):
111+ app_db .delete_entry ('BUFFER_QUEUE_TABLE' , key )
112+
99113 # Remove all the non-default zero profiles
100114 profiles = app_db .get_keys ('BUFFER_PROFILE_TABLE' )
101115 for key in profiles :
102116 if re .search (zero_profile_name_pattern , key ):
103117 app_db .delete_entry ('BUFFER_PROFILE_TABLE' , key )
118+
104119 # Remove all the non-default zero pools
105120 pools = app_db .get_keys ('BUFFER_POOL_TABLE' )
106121 for key in pools :
You can’t perform that action at this time.
0 commit comments