Skip to content

Commit a7f0b33

Browse files
authoredAug 5, 2021
[ fix ] The count was incorrect
1 parent a8d3651 commit a7f0b33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎myloader.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -472,13 +472,13 @@ void restore_databases(struct configuration *conf, MYSQL *conn) {
472472
struct db_table *dbt;
473473
g_hash_table_iter_init ( &iter, table_hash );
474474
while ( g_hash_table_iter_next ( &iter, (gpointer *) &lkey, (gpointer *) &dbt ) ) {
475-
dbt->count=g_async_queue_length(dbt->queue);
476475
table_list=g_list_insert_sorted_with_data (table_list,dbt,&compare_restore_job,table_hash);
477476
GList *i=dbt->restore_job_list;
478477
while (i) {
479478
g_async_queue_push(dbt->queue, new_job(JOB_RESTORE_FILENAME ,i->data));
480479
i=i->next;
481480
}
481+
dbt->count=g_async_queue_length(dbt->queue);
482482
}
483483
g_hash_table_destroy(table_hash);
484484
conf->table_list=table_list;

0 commit comments

Comments
 (0)
Please sign in to comment.