h2/src/main/org/h2/mvstore/MVMap.java
/**
     * Check that no write operation is in progress.
     */
Check that no write operation is in progress.
Check that no write operation is in progress .
protected void checkConcurrentWrite() {
        if (currentWriteVersion != -1) {
            throw DataUtils.newConcurrentModificationException(getName());
        }
    }
protected void checkConcurrentWrite ( ) { if ( currentWriteVersion != - 1 ) { throw DataUtils . newConcurrentModificationException ( getName ( ) ) ; } }
Check that no write operation is in progress.
Check that no write operation is in progress .
// try to detect concurrent modification // on a best-effort basis