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

Method acquireReadLocksOnSamePage

test/simpledb/LockingTest.java:110–113  ·  view source on GitHub ↗

Unit test for BufferPool.getPage() assuming locking. Acquires two read locks on the same page.

()

Source from the content-addressed store, hash-verified

108 * Acquires two read locks on the same page.
109 */
110 @Test public void acquireReadLocksOnSamePage() throws Exception {
111 metaLockTester(tid1, p0, Permissions.READ_ONLY,
112 tid2, p0, Permissions.READ_ONLY, true);
113 }
114
115 /**
116 * Unit test for BufferPool.getPage() assuming locking.

Callers

nothing calls this directly

Calls 1

metaLockTesterMethod · 0.95

Tested by

no test coverage detected