MCPcopy Create free account
hub / github.com/apple/foundationdb / writePage

Method writePage

fdbserver/VersionedBTree.actor.cpp:738–750  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

736 }
737
738 void writePage() {
739 ASSERT(mode == WRITE);
740 debug_printf("FIFOQueue::Cursor(%s) writePage\n", toString().c_str());
741
742 // Zero unused space within itemspace
743 memset(header()->begin() + header()->endOffset, 0, header()->itemSpace - header()->endOffset);
744
745 queue->pager->updatePage(
746 PagerEventReasons::MetaData, nonBtreeLevel, VectorRef<PhysicalPageID>(&pageID, 1), page);
747 if (firstPageIDWritten == invalidPhysicalPageID) {
748 firstPageIDWritten = pageID;
749 }
750 }
751
752 // Link the current page to newPageID:newOffset and then write it to the pager.
753 // The link destination could be a new page at the end of the queue, or the beginning of

Callers

nothing calls this directly

Calls 4

headerClass · 0.85
toStringFunction · 0.70
c_strMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected