Overview
| SHA1 Hash: | 2ce625fdbee78b2acbe3aa19b01ff92241c0d598 |
|---|---|
| Date: | 2012-10-03 18:26:39 |
| User: | drh |
| Comment: | Work around an optimization issue with the MSVC compiler for ARM. |
Tags And Properties
- branch=sessions-3.7.14 inherited from [86633e01fe]
- sym-sessions-3.7.14 inherited from [86633e01fe]
Changes
Changes to src/btree.c
5918 ** size of a cell stored within an internal node is always less than 1/4 5918 ** size of a cell stored within an internal node is always less than 1/4 5919 ** of the page-size, the aOvflSpace[] buffer is guaranteed to be large 5919 ** of the page-size, the aOvflSpace[] buffer is guaranteed to be large 5920 ** enough for all overflow cells. 5920 ** enough for all overflow cells. 5921 ** 5921 ** 5922 ** If aOvflSpace is set to a null pointer, this function returns 5922 ** If aOvflSpace is set to a null pointer, this function returns 5923 ** SQLITE_NOMEM. 5923 ** SQLITE_NOMEM. 5924 */ 5924 */ > 5925 #if defined(_MSC_VER) && _MSC_VER >= 1700 && defined(_M_ARM) > 5926 #pragma optimize("", off) > 5927 #endif 5925 static int balance_nonroot( 5928 static int balance_nonroot( 5926 MemPage *pParent, /* Parent page of siblings being balanced */ 5929 MemPage *pParent, /* Parent page of siblings being balanced */ 5927 int iParentIdx, /* Index of "the page" in pParent */ 5930 int iParentIdx, /* Index of "the page" in pParent */ 5928 u8 *aOvflSpace, /* page-size bytes of space for parent ovfl */ 5931 u8 *aOvflSpace, /* page-size bytes of space for parent ovfl */ 5929 int isRoot, /* True if pParent is a root-page */ 5932 int isRoot, /* True if pParent is a root-page */ 5930 int bBulk /* True if this call is part of a bulk load */ 5933 int bBulk /* True if this call is part of a bulk load */ 5931 ){ 5934 ){ ................................................................................................................................................................................ 6548 } 6551 } 6549 for(i=0; i<nNew; i++){ 6552 for(i=0; i<nNew; i++){ 6550 releasePage(apNew[i]); 6553 releasePage(apNew[i]); 6551 } 6554 } 6552 6555 6553 return rc; 6556 return rc; 6554 } 6557 } > 6558 #if defined(_MSC_VER) && _MSC_VER >= 1700 && defined(_M_ARM) > 6559 #pragma optimize("", on) > 6560 #endif 6555 6561 6556 6562 6557 /* 6563 /* 6558 ** This function is called when the root page of a b-tree structure is 6564 ** This function is called when the root page of a b-tree structure is 6559 ** overfull (has one or more overflow pages). 6565 ** overfull (has one or more overflow pages). 6560 ** 6566 ** 6561 ** A new child page is allocated and the contents of the current root 6567 ** A new child page is allocated and the contents of the current root