Suppress shutdown warning when empty transactions are automatically rolled back.

This commit is contained in:
Sears Russell 2010-02-17 05:10:30 +00:00
parent 5d0500dc7a
commit ba3179710b

View file

@ -332,8 +332,11 @@ int Tdeinit() {
int * active = stasis_transaction_table_list_active(stasis_transaction_table, &count); int * active = stasis_transaction_table_list_active(stasis_transaction_table, &count);
for(int i = 0; i < count; i++) { for(int i = 0; i < count; i++) {
if(!stasis_suppress_unclean_shutdown_warnings) { if(stasis_transaction_table_get(stasis_transaction_table,
fprintf(stderr, "WARNING: Tdeinit() is aborting transaction %d\n", active[i]); active[i])->prevLSN != INVALID_LSN) {
if(!stasis_suppress_unclean_shutdown_warnings) {
fprintf(stderr, "WARNING: Tdeinit() is aborting transaction %d\n", active[i]);
}
} }
Tabort(active[i]); Tabort(active[i]);
} }