mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-05-28 13:01:26 +03:00
MCOL-263: throw different error message on load data infile if columnstore suspendDatabaseWrite is enabled
This commit is contained in:
parent
ed804557bf
commit
39c3cabb7c
@ -3856,6 +3856,13 @@ void ha_calpont_impl_start_bulk_insert(ha_rows rows, TABLE* table)
|
||||
ci->singleInsert = true;
|
||||
return;
|
||||
}
|
||||
uint32_t stateFlags;
|
||||
dbrmp->getSystemState(stateFlags);
|
||||
if (stateFlags & SessionManagerServer::SS_SUSPENDED)
|
||||
{
|
||||
setError(current_thd, ER_INTERNAL_ERROR, "Writing to the database is disabled.");
|
||||
return;
|
||||
}
|
||||
|
||||
CalpontSystemCatalog::TableName tableName;
|
||||
tableName.schema = table->s->db.str;
|
||||
|
Loading…
x
Reference in New Issue
Block a user