MCPcopy Create free account
hub / github.com/MIT-DB-Class/simple-db-hw / setEmptyPage

Method setEmptyPage

src/java/simpledb/BTreeFile.java:973–1044  ·  view source on GitHub ↗

Mark a page in this BTreeFile as empty. Find the corresponding header page (create it if needed), and mark the corresponding slot in the header page as empty. @param tid - the transaction id @param dirtypages - the list of dirty pages which should be updated with all new dirty pages @param emptyPag

(TransactionId tid, HashMap<PageId, Page> dirtypages, int emptyPageNo)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

testReusePageMethod · 0.95
deleteParentEntryMethod · 0.95

Calls 13

getRootPtrPageMethod · 0.95
getHeaderIdMethod · 0.95
getPageMethod · 0.95
getIdMethod · 0.95
getEmptyPageMethod · 0.95
getIdMethod · 0.95
initMethod · 0.95
setHeaderIdMethod · 0.95
getNumSlotsMethod · 0.95
getNextPageIdMethod · 0.95
setPrevPageIdMethod · 0.95
setNextPageIdMethod · 0.95

Tested by 1

testReusePageMethod · 0.76