Suppress shutdown warning when empty transactions are automatically rolled back.
This commit is contained in:
parent
5d0500dc7a
commit
ba3179710b
1 changed files with 5 additions and 2 deletions
|
@ -332,8 +332,11 @@ int Tdeinit() {
|
|||
int * active = stasis_transaction_table_list_active(stasis_transaction_table, &count);
|
||||
|
||||
for(int i = 0; i < count; i++) {
|
||||
if(!stasis_suppress_unclean_shutdown_warnings) {
|
||||
fprintf(stderr, "WARNING: Tdeinit() is aborting transaction %d\n", active[i]);
|
||||
if(stasis_transaction_table_get(stasis_transaction_table,
|
||||
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]);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue