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

Method acquireWriteAndReadLocks

test/simpledb/LockingTest.java:176–179  ·  view source on GitHub ↗

Unit test for BufferPool.getPage() assuming locking. A single transaction should be able to acquire a read lock after it already has a write lock.

()

Source from the content-addressed store, hash-verified

174 * already has a write lock.
175 */
176 @Test public void acquireWriteAndReadLocks() throws Exception {
177 metaLockTester(tid1, p0, Permissions.READ_WRITE,
178 tid1, p0, Permissions.READ_ONLY, true);
179 }
180
181 /**
182 * Unit test for BufferPool.getPage() and BufferPool.releasePage()

Callers

nothing calls this directly

Calls 1

metaLockTesterMethod · 0.95

Tested by

no test coverage detected