// Invalidate statments accessing the given table.
// Note that due to retry logic, swithcing the data dictionary to
// write mode is done inside invalidateStatements.
invalidateStatements(lcc, td, asBackgroundTask);
// Drop existing index statistics for this index.
dd.dropStatisticsDescriptors(table, index, tc);
// Don't write statistics if the table is empty.
if (numRows == 0) {
trace(2, "empty table, no stats written");
} else {