|
46 | 46 | # (refresh domain list) before processing other changes, every time some |
47 | 47 | # process requested memory for a new VM, before releasing the lock. Then |
48 | 48 | # XS_Watcher will check this flag before processing other event. |
49 | | -FORCE_REFRESH_DOMAIN_LIST = False |
| 49 | +force_refresh_domain_list = False |
50 | 50 |
|
51 | 51 |
|
52 | 52 | def unique_per_list(list1, list2): |
@@ -153,10 +153,10 @@ def meminfo_changed(self, domid): |
153 | 153 | with GLOBAL_LOCK: |
154 | 154 | self.log.debug("GLOBAL_LOCK acquired") |
155 | 155 | try: |
156 | | - global FORCE_REFRESH_DOMAIN_LIST |
157 | | - if FORCE_REFRESH_DOMAIN_LIST: |
| 156 | + global force_refresh_domain_list |
| 157 | + if force_refresh_domain_list: |
158 | 158 | self.domain_list_changed(refresh_only=True) |
159 | | - FORCE_REFRESH_DOMAIN_LIST = False |
| 159 | + force_refresh_domain_list = False |
160 | 160 | if domid not in self.watch_token_dict: |
161 | 161 | # Domain was just destroyed. |
162 | 162 | return |
@@ -196,8 +196,8 @@ def handle(self): |
196 | 196 | if len(self.data) == 0: |
197 | 197 | self.log.info("client disconnected, resuming membalance") |
198 | 198 | if got_lock: |
199 | | - global FORCE_REFRESH_DOMAIN_LIST |
200 | | - FORCE_REFRESH_DOMAIN_LIST = True |
| 199 | + global force_refresh_domain_list |
| 200 | + force_refresh_domain_list = True |
201 | 201 | return |
202 | 202 |
|
203 | 203 | # XXX something is wrong here: return without release? |
|
0 commit comments