(completed, total_tables, error=None)
| 54 | |
| 55 | |
| 56 | def log_completion(completed, total_tables, error=None): |
| 57 | if error: |
| 58 | LOG.error("Completed COMPUTE STATS for %d/%d tables with error.", |
| 59 | completed, total_tables, exc_info=error) |
| 60 | else: |
| 61 | LOG.info("Completed COMPUTE STATS for %d/%d tables.", completed, total_tables) |
| 62 | |
| 63 | |
| 64 | def compute_stats(client_factory, db_names=None, table_names=None, |