Skip to content

Commit

Permalink
IGNITE-21999 Merge partition free-lists into one
Browse files Browse the repository at this point in the history
  • Loading branch information
Phillippko committed Apr 16, 2024
1 parent 821998c commit 65c7857
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,7 @@ private long takePage(int size, Storable row, IoStatisticsHolder statHolder) thr
* @return Prepared page id.
* @see PagesList#initReusedPage(long, long, int, byte, PageIo)
*/
private long initReusedPage( Storable row, long reusedPageId, IoStatisticsHolder statHolder) throws IgniteInternalCheckedException {
private long initReusedPage(Storable row, long reusedPageId, IoStatisticsHolder statHolder) throws IgniteInternalCheckedException {
long reusedPage = acquirePage(reusedPageId, statHolder);
try {
long reusedPageAddr = writeLock(reusedPageId, reusedPage);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
import org.apache.ignite.internal.storage.index.StorageSortedIndexDescriptor;
import org.apache.ignite.internal.storage.pagememory.PersistentPageMemoryTableStorage;
import org.apache.ignite.internal.storage.pagememory.configuration.schema.PersistentPageMemoryStorageEngineView;
import org.apache.ignite.internal.storage.pagememory.index.freelist.IndexColumns;
import org.apache.ignite.internal.storage.pagememory.index.hash.PageMemoryHashIndexStorage;
import org.apache.ignite.internal.storage.pagememory.index.meta.IndexMetaTree;
import org.apache.ignite.internal.storage.pagememory.index.sorted.PageMemorySortedIndexStorage;
Expand Down Expand Up @@ -82,8 +81,7 @@ public class PersistentPageMemoryMvPartitionStorage extends AbstractPageMemoryMv
* @param tableStorage Table storage.
* @param partitionId Partition id.
* @param meta Partition meta.
* @param freeList Free list for {@link RowVersion}.
* @param reuseList Free list fot {@link IndexColumns}.
* @param freeList Free list.
* @param versionChainTree Table tree for {@link VersionChain}.
* @param indexMetaTree Tree that contains SQL indexes' metadata.
* @param gcQueue Garbage collection queue.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ void partitionDestructionFreesSortedIndexPages() throws Exception {

indexStorage.put(nonInlinableIndexRow());

long emptyIndexPagesBeforeDestroy = dataRegion().freeList().emptyDataPages();;
long emptyIndexPagesBeforeDestroy = dataRegion().freeList().emptyDataPages();

assertThat(tableStorage.destroyPartition(0), willSucceedFast());

Expand Down

0 comments on commit 65c7857

Please sign in to comment.