| 142 | } |
| 143 | |
| 144 | uint64_t DiskArrayInternal::resize(PageAllocator& pageAllocator, const Transaction* transaction, |
| 145 | uint64_t newNumElements, std::span<std::byte> defaultVal) { |
| 146 | std::unique_lock xLck{diskArraySharedMtx}; |
| 147 | auto it = iter_mut(defaultVal.size()); |
| 148 | auto originalNumElements = getNumElementsNoLock(transaction->getType()); |
| 149 | while (it.size() < newNumElements) { |
| 150 | it.pushBack(pageAllocator, transaction, defaultVal); |
| 151 | } |
| 152 | return originalNumElements; |
| 153 | } |
| 154 | |
| 155 | void DiskArrayInternal::setNextPIPPageIDxOfPIPNoLock(uint64_t pipIdxOfPreviousPIP, |
| 156 | page_idx_t nextPIPPageIdx) { |
no test coverage detected