提交 4dc25ad7 编写于 作者: A Abhijit Subramanya

Harden analyzedb against concurrently dropped and recreated tables

Commit 4bbbb381 introduced some hardening
around concurrent drop and recreate of tables while analyzedb is running but it
failed to take into account the code around updating the last operation
performed. This commit fixes it.
上级 0daf6306
......@@ -695,8 +695,9 @@ class AnalyzeDb(Operation):
prev_ao_state_dict[schema_table] = new_modcount
# update last op for tables that are successfully analyzed
last_op_info = curr_last_op_dict[schema_table] # {'CREATE':'<entry>', 'ALTER':'<entry>', ...}
prev_last_op_dict[schema_table] = last_op_info
if schema_table in curr_last_op_dict:
last_op_info = curr_last_op_dict[schema_table] # {'CREATE':'<entry>', 'ALTER':'<entry>', ...}
prev_last_op_dict[schema_table] = last_op_info
# update column dict
if is_full or schema_table in dirty_partitions or schema_table not in prev_col_dict or '-1' in \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册