1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-12 13:01:09 +03:00

Minor corrections to logging for sqlite3_win32_compact_heap().

FossilOrigin-Name: 71347d021bea90ad7e4cc0d3e54940ce29b9ea69
This commit is contained in:
mistachkin
2013-11-08 18:37:02 +00:00
parent e8f91053f6
commit 17bc3ff956
3 changed files with 10 additions and 11 deletions

View File

@@ -1116,12 +1116,14 @@ int sqlite3_win32_compact_heap(LPUINT pnLargest){
(void*)hHeap);
rc = SQLITE_NOMEM;
}else{
sqlite3_log(SQLITE_NOMEM, "failed to HeapCompact (%lu), heap=%p",
sqlite3_log(SQLITE_ERROR, "failed to HeapCompact (%lu), heap=%p",
osGetLastError(), (void*)hHeap);
rc = SQLITE_ERROR;
}
}
#else
sqlite3_log(SQLITE_NOTFOUND, "failed to HeapCompact, heap=%p",
(void*)hHeap);
rc = SQLITE_NOTFOUND;
#endif
if( pnLargest ) *pnLargest = nLargest;