MCPcopy Create free account
hub / github.com/1345414527/MIT6.830 / acquireWriteLocksOnTwoPages

Method acquireWriteLocksOnTwoPages

test/simpledb/LockingTest.java:146–149  ·  view source on GitHub ↗

Unit test for BufferPool.getPage() assuming locking. Acquires write locks on different pages.

()

Source from the content-addressed store, hash-verified

144 * Acquires write locks on different pages.
145 */
146 @Test public void acquireWriteLocksOnTwoPages() throws Exception {
147 metaLockTester(tid1, p0, Permissions.READ_WRITE,
148 tid2, p1, Permissions.READ_WRITE, true);
149 }
150
151 /**
152 * Unit test for BufferPool.getPage() assuming locking.

Callers

nothing calls this directly

Calls 1

metaLockTesterMethod · 0.95

Tested by

no test coverage detected