| 1128 | } |
| 1129 | |
| 1130 | void BTreeDatabase::commitWrites() { |
| 1131 | for (auto& write : m_uncommittedWrites) |
| 1132 | m_device->writeFullAbsolute(HeaderSize + write.first * (StreamOffset)m_blockSize, write.second.ptr(), m_blockSize); |
| 1133 | |
| 1134 | m_device->sync(); |
| 1135 | m_uncommittedWrites.clear(); |
| 1136 | } |
| 1137 | |
| 1138 | bool BTreeDatabase::tryFlatten() { |
| 1139 | if (m_headFreeIndexBlock == InvalidBlockIndex || m_rootIsLeaf || !m_device->isWritable()) |
nothing calls this directly
no test coverage detected