If configured so, panic if there is an error saving transactions in the plugin (#21602)
This commit is contained in:
@ -670,7 +670,12 @@ impl PostgresClientWorker {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
DbWorkItem::LogTransaction(transaction_log_info) => {
|
DbWorkItem::LogTransaction(transaction_log_info) => {
|
||||||
self.client.log_transaction(*transaction_log_info)?;
|
if let Err(err) = self.client.log_transaction(*transaction_log_info) {
|
||||||
|
error!("Failed to update transaction: ({})", err);
|
||||||
|
if panic_on_db_errors {
|
||||||
|
abort();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
Err(err) => match err {
|
Err(err) => match err {
|
||||||
|
Reference in New Issue
Block a user