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

Method getRootPtrPage

src/java/simpledb/BTreeFile.java:847–863  ·  view source on GitHub ↗

Get a read lock on the root pointer page. Create the root pointer page and root page if necessary. @param tid - the transaction id @param dirtypages - the list of dirty pages which should be updated with all new dirty pages @return the root pointer page @throws DbException @throws IOException @thro

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

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 4

insertTupleMethod · 0.95
getEmptyPageNoMethod · 0.95
setEmptyPageMethod · 0.95
checkRepMethod · 0.80

Calls 5

createEmptyPageDataMethod · 0.95
getPageMethod · 0.95
getIdMethod · 0.95
closeMethod · 0.65
createEmptyPageDataMethod · 0.45

Tested by

no test coverage detected