1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

- Delete ALL or truncate must not be done using file mapping.

modified:
  storage/connect/tabdos.cpp
  storage/connect/tabfix.cpp
  storage/connect/tabvct.cpp
This commit is contained in:
Olivier Bertrand
2013-03-08 22:48:27 +01:00
parent 3342df63ef
commit c7b95cb9df
3 changed files with 15 additions and 12 deletions

View File

@@ -299,18 +299,11 @@ bool TDBVCT::OpenDB(PGLOBAL g)
} // endif Use
/*********************************************************************/
/* Insert is not handled using file mapping. */
/* Delete all is not handled using file mapping. */
/*********************************************************************/
if (Mode == MODE_INSERT && !((PVCTDEF)To_Def)->GetEstimate() &&
Txfp->GetAmType() == TYPE_AM_VMP) {
if (!((PVCTFAM)Txfp)->Split) {
Txfp = new(g) VCTFAM((PVCTDEF)To_Def);
Txfp->SetTdbp(this);
} else {
Txfp = new(g) VECFAM((PVCTDEF)To_Def);
Txfp->SetTdbp(this);
} // endif Split
if (Mode == MODE_DELETE && !Next && Txfp->GetAmType() == TYPE_AM_MAP) {
Txfp = new(g) VCTFAM((PVCTDEF)To_Def);
Txfp->SetTdbp(this);
} // endif Mode
/*********************************************************************/