1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-07 03:22:57 +03:00

MCOL-769 Add autocommit to condition

This commit is contained in:
Andrew Hutchings
2017-06-16 17:55:44 +01:00
parent e8581e12d3
commit 44977a8c6b

View File

@@ -1177,7 +1177,7 @@ timer.stop("allocRowId");
//-------------------------------------------------------------------------- //--------------------------------------------------------------------------
// Tokenize data if needed // Tokenize data if needed
//-------------------------------------------------------------------------- //--------------------------------------------------------------------------
if (insertSelect) if (insertSelect && isAutoCommitOn)
BRMWrapper::setUseVb( false ); BRMWrapper::setUseVb( false );
else else
BRMWrapper::setUseVb( true ); BRMWrapper::setUseVb( true );
@@ -1285,7 +1285,7 @@ timer.stop("tokenize");
} }
} }
} }
if (insertSelect) if (insertSelect && isAutoCommitOn)
BRMWrapper::setUseVb( false ); BRMWrapper::setUseVb( false );
else else
BRMWrapper::setUseVb( true ); BRMWrapper::setUseVb( true );