fixup tests following the stricter block checking

This commit is contained in:
Joe Thornber
2011-07-22 16:32:47 +01:00
parent a683979585
commit 5c66593d11
4 changed files with 38 additions and 14 deletions

View File

@@ -112,9 +112,10 @@ block_manager<BlockSize>::write_lock_zero(block_address location)
buffer buf;
zero_buffer(buf);
register_lock(location, WRITE_LOCK);
typename block::ptr b(new block(location, buf, lock_count_, ordinary_count_),
bind(&block_manager<BlockSize>::write_release, this, _1));
register_lock(location, WRITE_LOCK);
return write_ref(b);
}