~vkolesnikov/pbxt/pbxt-maria-windows-app-ver-fixes

« back to all changes in this revision

Viewing changes to src/table_xt.cc

  • Committer: Paul McCullagh
  • Date: 2010-11-10 08:59:11 UTC
  • Revision ID: paul.mccullagh@primebase.org-20101110085911-zhl8575cetlhpexm
Added logging to repair pending activity

Show diffs side-by-side

added added

removed removed

Lines of Context:
5565
5565
 
5566
5566
                tab->tab_repair_pending = FALSE;
5567
5567
                xt_tab_make_table_name(tab, table_name, sizeof(table_name));
5568
 
                tab_exec_repair_pending(tab->tab_db, REP_DEL, table_name);
 
5568
                xt_logf(XT_NT_INFO, "Table %s no longer repair pending\n", table_name);
 
5569
                if (!tab_exec_repair_pending(tab->tab_db, REP_DEL, table_name))
 
5570
                        xt_log_and_clear_exception_ns();
5569
5571
        }
5570
5572
}
5571
5573
 
5576
5578
 
5577
5579
                tab->tab_repair_pending = TRUE;
5578
5580
                xt_tab_make_table_name(tab, table_name, sizeof(table_name));
5579
 
                tab_exec_repair_pending(tab->tab_db, REP_ADD, table_name);
 
5581
                xt_logf(XT_NT_INFO, "Table %s set to repair pending\n", table_name);
 
5582
                if (!tab_exec_repair_pending(tab->tab_db, REP_ADD, table_name))
 
5583
                        xt_log_and_clear_exception_ns();
5580
5584
        }
5581
5585
}