[CP] fix failed cases caused by cherry-pick code
This commit is contained in:
		| @ -354,8 +354,7 @@ int ObDbmsStatsUtils::split_batch_write(sql::ObExecContext &ctx, | |||||||
|                                         ObIArray<ObOptColumnStat*> &column_stats, |                                         ObIArray<ObOptColumnStat*> &column_stats, | ||||||
|                                         const bool is_index_stat/*default false*/, |                                         const bool is_index_stat/*default false*/, | ||||||
|                                         const bool is_history_stat/*default false*/, |                                         const bool is_history_stat/*default false*/, | ||||||
|                                         const bool is_online_stat /*default false*/, |                                         const bool is_online_stat /*default false*/) | ||||||
|                                         const ObObjPrintParams &print_params) |  | ||||||
| { | { | ||||||
|   int ret = OB_SUCCESS; |   int ret = OB_SUCCESS; | ||||||
|   int64_t idx_tab_stat = 0; |   int64_t idx_tab_stat = 0; | ||||||
| @ -418,7 +417,7 @@ int ObDbmsStatsUtils::split_batch_write(sql::ObExecContext &ctx, | |||||||
|                                                 is_index_stat, |                                                 is_index_stat, | ||||||
|                                                 is_history_stat, |                                                 is_history_stat, | ||||||
|                                                 is_online_stat, |                                                 is_online_stat, | ||||||
|                                                 print_params))) { |                                                 CREATE_OBJ_PRINT_PARAM(ctx.get_my_session())))) { | ||||||
|         LOG_WARN("failed to batch write stats", K(ret), K(idx_tab_stat), K(idx_col_stat)); |         LOG_WARN("failed to batch write stats", K(ret), K(idx_tab_stat), K(idx_col_stat)); | ||||||
|       } else {/*do nothing*/} |       } else {/*do nothing*/} | ||||||
|     } |     } | ||||||
|  | |||||||
| @ -44,8 +44,7 @@ public: | |||||||
|                                ObIArray<ObOptColumnStat*> &column_stats, |                                ObIArray<ObOptColumnStat*> &column_stats, | ||||||
|                                const bool is_index_stat = false, |                                const bool is_index_stat = false, | ||||||
|                                const bool is_history_stat = false, |                                const bool is_history_stat = false, | ||||||
|                                const bool is_online_stat = false, |                                const bool is_online_stat = false); | ||||||
|                                const ObObjPrintParams &print_params = ObObjPrintParams()); |  | ||||||
|  |  | ||||||
|   static int batch_write_history_stats(sql::ObExecContext &ctx, |   static int batch_write_history_stats(sql::ObExecContext &ctx, | ||||||
|                                        ObIArray<ObOptTableStatHandle> &history_tab_handles, |                                        ObIArray<ObOptTableStatHandle> &history_tab_handles, | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 wangt1xiuyi
					wangt1xiuyi