| 78 | } |
| 79 | |
| 80 | void BTreeDatabase::setAutoCommit(bool autoCommit) { |
| 81 | WriteLocker writeLocker(m_lock); |
| 82 | m_autoCommit = autoCommit; |
| 83 | if (m_autoCommit) |
| 84 | doCommit(); |
| 85 | } |
| 86 | |
| 87 | IODevicePtr BTreeDatabase::ioDevice() const { |
| 88 | ReadLocker readLocker(m_lock); |
no outgoing calls