h2/src/main/org/h2/mvstore/MVMap.java
/**
     * Use the new root page from now on.
     *
     * @param newRoot the new root page
     */
Use the new root page from now on.
@param newRoot the new root page
Use the new root page from now on . @param newRoot the new root page
protected void newRoot(Page newRoot) {
        if (root != newRoot) {
            removeUnusedOldVersions();
            if (root.getVersion() != newRoot.getVersion()) {
                ArrayList<Page> list = oldRoots;
                if (list.size() > 0) {
                    Page last = list.get(list.size() - 1);
                    if (last.getVersion() != root.getVersion()) {
                        list.add(root);
                    }
                } else {
                    list.add(root);
                }
            }
            root = newRoot;
        }
    }
protected void newRoot ( Page newRoot ) { if ( root != newRoot ) { removeUnusedOldVersions ( ) ; if ( root . getVersion ( ) != newRoot . getVersion ( ) ) { ArrayList < Page > list = oldRoots ; if ( list . size ( ) > 0 ) { Page last = list . get ( list . size ( ) - 1 ) ; if ( last . getVersion ( ) != root . getVersion ( ) ) { list . add ( root ) ; } } else { list . add ( root ) ; } } root = newRoot ; } }
Use the new root page from now on.
Use the new root page from now on .