| 890 | } |
| 891 | |
| 892 | void DsqlBatch::DataCache::flush() |
| 893 | { |
| 894 | if (!m_space) |
| 895 | m_space = FB_NEW_POOL(getPool()) TempSpace(getPool(), TEMP_NAME); |
| 896 | |
| 897 | const FB_UINT64 writtenBytes = m_space->write(m_used, m_cache.begin(), m_cache.getCount()); |
| 898 | fb_assert(writtenBytes == m_cache.getCount()); |
| 899 | m_used += m_cache.getCount(); |
| 900 | m_cache.clear(); |
| 901 | } |
| 902 | |
| 903 | void DsqlBatch::DataCache::align(ULONG alignment) |
| 904 | { |