MCPcopy Create free account
hub / github.com/awelm/simpledb / metaLockTester

Method metaLockTester

test/simpledb/LockingTest.java:65–72  ·  view source on GitHub ↗

Generic unit test structure for BufferPool.getPage() assuming locking. @param tid1 the first transaction Id @param pid1 the first page to lock over @param perm1 the type of lock for the first page @param tid2 the second transaction Id @param pid2 the second page to lock over @param perm2 the type o

(
      TransactionId tid1, PageId pid1, Permissions perm1,
      TransactionId tid2, PageId pid2, Permissions perm2,
      boolean expected)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Calls 2

grabLockMethod · 0.95
getPageMethod · 0.80

Tested by

no test coverage detected