mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-07 02:42:48 +03:00
The zeroPage() routine in btree.c need not actually zero the whole page,
just the header. (CVS 5434) FossilOrigin-Name: c69633ec6977becfbd0a72854473b7f4515fb931
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
** May you share freely, never taking more than you give.
|
||||
**
|
||||
*************************************************************************
|
||||
** $Id: btree.c,v 1.486 2008/07/18 02:44:18 drh Exp $
|
||||
** $Id: btree.c,v 1.487 2008/07/18 03:32:51 drh Exp $
|
||||
**
|
||||
** This file implements a external (disk-based) database using BTrees.
|
||||
** See the header comment on "btreeInt.h" for additional information.
|
||||
@@ -1029,7 +1029,7 @@ static void zeroPage(MemPage *pPage, int flags){
|
||||
assert( sqlite3PagerGetData(pPage->pDbPage) == data );
|
||||
assert( sqlite3PagerIswriteable(pPage->pDbPage) );
|
||||
assert( sqlite3_mutex_held(pBt->mutex) );
|
||||
memset(&data[hdr], 0, pBt->usableSize - hdr);
|
||||
/*memset(&data[hdr], 0, pBt->usableSize - hdr);*/
|
||||
data[hdr] = flags;
|
||||
first = hdr + 8 + 4*((flags&PTF_LEAF)==0);
|
||||
memset(&data[hdr+1], 0, 4);
|
||||
|
Reference in New Issue
Block a user