private void ReadDroppedTables()
{
lock (commitLock) {
// The list of all dropped tables from the state file
var tables = StateStore.GetDeleteList();
// For each visible table
foreach (var resource in tables) {
int tableId =resource.TableId;
string tableName = resource.SourceName;
// Load the master table from the resource information
var source = LoadTableSource(tableId, tableName);
// File wasn't found so remove from the delete resources
if (source == null) {
StateStore.RemoveDeleteResource(tableName);
} else {
source.Open();
// Add the table to the table list
tableSources.Add(tableId, source);
}
}
StateStore.Flush();
}
}