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

Method assignLatestAttachmentId

src/jrd/tpc.cpp:1195–1203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1193//}
1194
1195void TipCache::assignLatestAttachmentId(AttNumber number)
1196{
1197 // Can only be called on initialized TipCache
1198 fb_assert(m_tpcHeader);
1199 GlobalTpcHeader* header = m_tpcHeader->getHeader();
1200
1201 // XXX: there is no paired acquire because value assigned here is not really used for now
1202 header->latest_attachment_id.store(number, std::memory_order_release);
1203}
1204
1205AttNumber TipCache::getLatestAttachmentId() const
1206{

Callers 1

PAG_attachment_idFunction · 0.45

Calls 2

getHeaderMethod · 0.45
storeMethod · 0.45

Tested by

no test coverage detected