diff options
author | Alexander Barkov <bar@mnogosearch.org> | 2014-04-21 14:57:10 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mnogosearch.org> | 2014-04-21 14:57:10 +0400 |
commit | 6075c8246771dd14bd52a511ee665b8995e3f33f (patch) | |
tree | ce58d06c31a735054ce2c8446d5e0c9da5bd97e5 /storage/connect/filamvct.cpp | |
parent | 187e41697b7e4c43fcfe8e5c01f7cc7ad289f995 (diff) | |
parent | 7216afbc78f7a4b4d517e04364fcc23255d4dfeb (diff) | |
download | mariadb-git-6075c8246771dd14bd52a511ee665b8995e3f33f.tar.gz |
Merge 10.0 -> 10.0-connect
Diffstat (limited to 'storage/connect/filamvct.cpp')
-rwxr-xr-x | storage/connect/filamvct.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/storage/connect/filamvct.cpp b/storage/connect/filamvct.cpp index e6c8bf23b50..97eb4c7c8b4 100755 --- a/storage/connect/filamvct.cpp +++ b/storage/connect/filamvct.cpp @@ -477,7 +477,7 @@ bool VCTFAM::AllocateBuffer(PGLOBAL g) Clens[i] = cdp->GetClen(); Deplac[i] = Headlen + cdp->GetPoff() * n * Nrec; Isnum[i] = IsTypeNum(cdp->GetType()); - Buflen = max(Buflen, cdp->GetClen()); + Buflen = MY_MAX(Buflen, cdp->GetClen()); } // endfor cdp if (!UseTemp || MaxBlk) { @@ -852,9 +852,9 @@ bool VCTFAM::MoveIntermediateLines(PGLOBAL g, bool *b) /* Non consecutive line to delete. Move intermediate lines. */ /*******************************************************************/ if (!MaxBlk) - req = (size_t)min(n, Nrec - max(Spos % Nrec, Tpos % Nrec)); + req = (size_t)MY_MIN(n, Nrec - MY_MAX(Spos % Nrec, Tpos % Nrec)); else - req = (size_t)min(n, Nrec); + req = (size_t)MY_MIN(n, Nrec); if (req) for (i = 0; i < Ncol; i++) { if (MaxBlk) { @@ -985,7 +985,7 @@ bool VCTFAM::CleanUnusedSpace(PGLOBAL g) /* Note: this seems to work even column blocks have been made */ /* with Blanks = true. Perhaps should it be set to false for VEC. */ /*******************************************************************/ - req = (size_t)min(n, Nrec); + req = (size_t)MY_MIN(n, Nrec); memset(To_Buf, 0, Buflen); for (i = 0; i < Ncol; i++) { @@ -1574,7 +1574,7 @@ int VCMFAM::DeleteRecords(PGLOBAL g, int irc) for (n = Fpos - Spos; n > 0; n -= req) { soff = Spos % Nrec; toff = Tpos % Nrec; - req = (size_t)min(n, Nrec - max(soff, toff)); + req = (size_t)MY_MIN(n, Nrec - MY_MAX(soff, toff)); for (i = 0; i < Ncol; i++) { ps = Memcol[i] + (Spos / Nrec) * Blksize + soff * Clens[i]; @@ -2005,7 +2005,7 @@ bool VECFAM::AllocateBuffer(PGLOBAL g) for (i = 0; cdp && i < Ncol; i++, cdp = cdp->GetNext()) { Clens[i] = cdp->GetClen(); - Buflen = max(Buflen, cdp->GetClen()); + Buflen = MY_MAX(Buflen, cdp->GetClen()); } // endfor cdp } else { // Mode Update, only some columns are updated @@ -2016,7 +2016,7 @@ bool VECFAM::AllocateBuffer(PGLOBAL g) T_Streams[i] = NULL; // Mark the streams to open Clens[i] = cp->Clen; - Buflen = max(Buflen, cp->Clen); + Buflen = MY_MAX(Buflen, cp->Clen); } // endfor cp InitUpdate = true; // To be initialized @@ -2297,7 +2297,7 @@ bool VECFAM::MoveIntermediateLines(PGLOBAL g, bool *bn) /*******************************************************************/ /* Non consecutive line to delete. Move intermediate lines. */ /*******************************************************************/ - req = (size_t)min(n, Nrec); + req = (size_t)MY_MIN(n, Nrec); for (i = 0; i < Ncol; i++) { if (!T_Streams[i]) @@ -3603,7 +3603,7 @@ bool BGVFAM::AllocateBuffer(PGLOBAL g) Clens[i] = cdp->GetClen(); Isnum[i] = IsTypeNum(cdp->GetType()); - Buflen = max(Buflen, cdp->GetClen()); + Buflen = MY_MAX(Buflen, cdp->GetClen()); } // endfor cdp if (!UseTemp || MaxBlk) { @@ -3907,9 +3907,9 @@ bool BGVFAM::MoveIntermediateLines(PGLOBAL g, bool *b) /* Non consecutive line to delete. Move intermediate lines. */ /*******************************************************************/ if (!MaxBlk) - req = (DWORD)min(n, Nrec - max(Spos % Nrec, Tpos % Nrec)); + req = (DWORD)MY_MIN(n, Nrec - MY_MAX(Spos % Nrec, Tpos % Nrec)); else - req = (DWORD)min(n, Nrec); + req = (DWORD)MY_MIN(n, Nrec); if (req) for (i = 0; i < Ncol; i++) { if (!MaxBlk) { @@ -4016,7 +4016,7 @@ bool BGVFAM::CleanUnusedSpace(PGLOBAL g) /* This seems to work even column blocks have been made with */ /* Blanks = true. Perhaps should it be set to false for VEC. */ /*****************************************************************/ - req = min(n, Nrec); + req = MY_MIN(n, Nrec); for (i = 0; i < Ncol; i++) { pos = BigDep[i] + (BIGINT)Tpos * (BIGINT)Clens[i]; |