提交 22448ff7 编写于 作者: A Abhijit Subramanya 提交者: Chris Hajas

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.

(cherry picked from commit 6949ecfb1a90c92db63c7c26463f3a9110d3fa12)
上级 7980a57a
......@@ -615,8 +615,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.
先完成此消息的编辑!
想要评论请 注册