h2/src/main/org/h2/mvstore/Page.java
/**
     * Unlink the children recursively after all data is written.
     */
Unlink the children recursively after all data is written.
Unlink the children recursively after all data is written .
void writeEnd() {
        if (!isLeaf()) {
            int len = childCount;
            for (int i = 0; i < len; i++) {
                Page p = childrenPages[i];
                if (p != null) {
                    if (p.getPos() == 0) {
                        throw DataUtils.newIllegalStateException(
                                DataUtils.ERROR_INTERNAL, "Page not written");
                    }
                    p.writeEnd();
                    childrenPages[i] = null;
                }
            }
        }
    }
void writeEnd ( ) { if ( ! isLeaf ( ) ) { int len = childCount ; for ( int i = 0 ; i < len ; i ++ ) { Page p = childrenPages [ i ] ; if ( p != null ) { if ( p . getPos ( ) == 0 ) { throw DataUtils . newIllegalStateException ( DataUtils . ERROR_INTERNAL , "Page not written" ) ; } p . writeEnd ( ) ; childrenPages [ i ] = null ; } } } }
Unlink the children recursively after all data is written.
Unlink the children recursively after all data is written .