MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / flush

Method flush

src/dsql/DsqlBatch.cpp:892–901  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

890}
891
892void 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
903void DsqlBatch::DataCache::align(ULONG alignment)
904{

Callers 2

mainMethod · 0.45
extractAssetsMethod · 0.45

Calls 5

TempSpaceClass · 0.85
writeMethod · 0.45
beginMethod · 0.45
getCountMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected