h2/src/main/org/h2/mvstore/Page.java
/**
     * Create a copy of this page.
     *
     * @param version the new version
     * @return a page with the given version
     */
Create a copy of this page.
@param version the new version
@return a page with the given version
Create a copy of this page . @param version the new version @return a page with the given version
public Page copy(long version) {
        Page newPage = create(map, version,
                keyCount, keys, values,
                childCount, children, childrenPages, counts, totalCount,
                SHARED_KEYS | SHARED_VALUES | SHARED_CHILDREN | SHARED_COUNTS,
                memory);
        removePage();
        newPage.cachedCompare = cachedCompare;
        return newPage;
    }
public Page copy ( long version ) { Page newPage = create ( map , version , keyCount , keys , values , childCount , children , childrenPages , counts , totalCount , SHARED_KEYS | SHARED_VALUES | SHARED_CHILDREN | SHARED_COUNTS , memory ) ; removePage ( ) ; newPage . cachedCompare = cachedCompare ; return newPage ; }
Create a copy of this page.
Create a copy of this page .
// mark the old as deleted