| 35 | } |
| 36 | |
| 37 | static void tryWriteEventToSystemLog(LoggerPtr log, ContextPtr context, |
| 38 | TransactionsInfoLogElement::Type type, const TransactionID & tid, CSN csn = Tx::UnknownCSN) |
| 39 | try |
| 40 | { |
| 41 | auto system_log = context->getTransactionsInfoLog(); |
| 42 | if (!system_log) |
| 43 | return; |
| 44 | |
| 45 | TransactionsInfoLogElement elem; |
| 46 | elem.type = type; |
| 47 | elem.tid = tid; |
| 48 | elem.csn = csn; |
| 49 | elem.fillCommonFields(nullptr); |
| 50 | system_log->add(std::move(elem)); |
| 51 | } |
| 52 | catch (...) |
| 53 | { |
| 54 | tryLogCurrentException(log); |
| 55 | } |
| 56 | |
| 57 | |
| 58 | TransactionLog::TransactionLog() |
no test coverage detected