| 219 | } |
| 220 | |
| 221 | ThreadSafeDatabase::~ThreadSafeDatabase() { |
| 222 | DatabaseContext* db = this->db; |
| 223 | onMainThreadVoid([db]() { db->delref(); }); |
| 224 | } |
| 225 | |
| 226 | Reference<ITransaction> ThreadSafeTenant::createTransaction() { |
| 227 | auto type = db->isConfigDB ? ISingleThreadTransaction::Type::SIMPLE_CONFIG : ISingleThreadTransaction::Type::RYW; |
nothing calls this directly
no test coverage detected