From 03faf63b57a76c925c0e46e8bcb3b86cfe098590 Mon Sep 17 00:00:00 2001 From: drh Date: Mon, 4 Apr 2011 23:08:14 +0000 Subject: [PATCH] Add a comment to the VACUUM implementation explaining when all schemas are reset and not just the "main" schema. FossilOrigin-Name: 2aff1b0ca87a99b8ec80e696b9e8a48bb43db2c2 --- manifest | 12 ++++++------ manifest.uuid | 2 +- src/vacuum.c | 2 ++ 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/manifest b/manifest index c71c3e41f8..e06a7959a3 100644 --- a/manifest +++ b/manifest @@ -1,5 +1,5 @@ -C Additional\sschema\smutex\schecks\sfor\ssqlite3RootPageMoved().\nReduce\sthe\sscope\sof\ssqlite3ResetInternalSchema()\sin\sa\sfew\splaces. -D 2011-04-04T21:25:28.533 +C Add\sa\scomment\sto\sthe\sVACUUM\simplementation\sexplaining\swhen\sall\sschemas\sare\nreset\sand\snot\sjust\sthe\s"main"\sschema. +D 2011-04-04T23:08:14.941 F Makefile.arm-wince-mingw32ce-gcc d6df77f1f48d690bd73162294bbba7f59507c72f F Makefile.in 7a4d9524721d40ef9ee26f93f9bd6a51dba106f2 F Makefile.linux-gcc 91d710bdc4998cb015f39edf3cb314ec4f4d7e23 @@ -234,7 +234,7 @@ F src/trigger.c bb68c3d1feff3e1335c55a7acf195b9c96ae91ec F src/update.c 81911be16ece3c3e7716aa18565b4814ec41f8b9 F src/utf.c d83650c3ea08f7407bd9d0839d9885241c209c60 F src/util.c cd997077bad039efc0597eb027c929658f93c018 -F src/vacuum.c 3b2b0998f4f277e4bc61469c2d78d8424d02899b +F src/vacuum.c 05513dca036a1e7848fe18d5ed1265ac0b32365e F src/vdbe.c 0140a57f9cbd50351219bfc4e44ef3de64bd65b8 F src/vdbe.h 4de0efb4b0fdaaa900cf419b35c458933ef1c6d2 F src/vdbeInt.h 7e2f028ecc1a9faa6f253e7aa8d89cae03662bae @@ -926,7 +926,7 @@ F tool/speedtest8.c 2902c46588c40b55661e471d7a86e4dd71a18224 F tool/speedtest8inst1.c 293327bc76823f473684d589a8160bde1f52c14e F tool/split-sqlite3c.tcl d9be87f1c340285a3e081eb19b4a247981ed290c F tool/vdbe-compress.tcl d70ea6d8a19e3571d7ab8c9b75cba86d1173ff0f -P 82c2316240345167a571507d9392dfb6445ef523 -R 7c6dcb957e59966f9f4fd72f4c665ab1 +P 39c00907833413c0d97d3e06fdda967b825d23ea +R 649858c83395859d3a968f120123364a U drh -Z 5433fdc0cc3ff75407dd2b1ee53a6522 +Z 182c2bca240b7634d123c22091b55227 diff --git a/manifest.uuid b/manifest.uuid index 18b6d137fd..ac9178d675 100644 --- a/manifest.uuid +++ b/manifest.uuid @@ -1 +1 @@ -39c00907833413c0d97d3e06fdda967b825d23ea \ No newline at end of file +2aff1b0ca87a99b8ec80e696b9e8a48bb43db2c2 \ No newline at end of file diff --git a/src/vacuum.c b/src/vacuum.c index 5ca39ae1e0..5a4ed32052 100644 --- a/src/vacuum.c +++ b/src/vacuum.c @@ -335,6 +335,8 @@ end_of_vacuum: pDb->pSchema = 0; } + /* This both clears the schemas and reduces the size of the db->aDb[] + ** array. */ sqlite3ResetInternalSchema(db, -1); return rc; -- 2.39.5