1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-07 02:42:48 +03:00

Add two new assert()s to the sqlite3BtreeDataSize() method.

FossilOrigin-Name: 42d1793d6516e285a8925bbfd96b3d3375603d15
This commit is contained in:
drh
2015-03-25 12:05:49 +00:00
parent d69e557940
commit f94c9485ef
3 changed files with 10 additions and 9 deletions

View File

@@ -4031,6 +4031,8 @@ int sqlite3BtreeKeySize(BtCursor *pCur, i64 *pSize){
int sqlite3BtreeDataSize(BtCursor *pCur, u32 *pSize){
assert( cursorHoldsMutex(pCur) );
assert( pCur->eState==CURSOR_VALID );
assert( pCur->iPage>=0 );
assert( pCur->iPage<BTCURSOR_MAX_DEPTH );
assert( pCur->apPage[pCur->iPage]->intKeyLeaf==1 );
getCellInfo(pCur);
*pSize = pCur->info.nPayload;