]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
Include the SOURCE_ID value in the log messages output for corruption, misuse,
authordrh <drh@noemail.net>
Wed, 23 Jun 2010 17:59:51 +0000 (17:59 +0000)
committerdrh <drh@noemail.net>
Wed, 23 Jun 2010 17:59:51 +0000 (17:59 +0000)
and CANTOPEN errors.

FossilOrigin-Name: 1727a81fed65bebfea43e0bda271584096d82785

manifest
manifest.uuid
src/main.c

index 02d0024b01b64c435bc68c2484a40fb0e90d57e2..8cf565642e65a0f8482eacf523277b67c139fc9f 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,8 +1,8 @@
 -----BEGIN PGP SIGNED MESSAGE-----
 Hash: SHA1
 
-C Adjust\sthe\sshared-memory\slocking\srange\sto\saccount\sfor\sthe\snew\sversion\snumber\nvalues\sin\sthe\swal-index\sheader.
-D 2010-06-23T17:58:38
+C Include\sthe\sSOURCE_ID\svalue\sin\sthe\slog\smessages\soutput\sfor\scorruption,\smisuse,\nand\sCANTOPEN\serrors.
+D 2010-06-23T17:59:51
 F Makefile.arm-wince-mingw32ce-gcc fcd5e9cd67fe88836360bb4f9ef4cb7f8e2fb5a0
 F Makefile.in a5cad1f8f3e021356bfcc6c77dc16f6f1952bbc3
 F Makefile.linux-gcc d53183f4aa6a9192d249731c90dbdffbd2c68654
@@ -138,7 +138,7 @@ F src/journal.c b0ea6b70b532961118ab70301c00a33089f9315c
 F src/legacy.c a199d7683d60cef73089e892409113e69c23a99f
 F src/lempar.c 7f026423f4d71d989e719a743f98a1cbd4e6d99e
 F src/loadext.c 1c7a61ce1281041f437333f366a96aa0d29bb581
-F src/main.c 4b55bb32a344b50a5388ba2636b83a3fd33dc3d5
+F src/main.c a667105394a7e7d173727b96affd35f65b28e608
 F src/malloc.c a08f16d134f0bfab6b20c3cd142ebf3e58235a6a
 F src/mem0.c 6a55ebe57c46ca1a7d98da93aaa07f99f1059645
 F src/mem1.c 89d4ea8d5cdd55635cbaa48ad53132af6294cbb2
@@ -828,14 +828,14 @@ F tool/speedtest2.tcl ee2149167303ba8e95af97873c575c3e0fab58ff
 F tool/speedtest8.c 2902c46588c40b55661e471d7a86e4dd71a18224
 F tool/speedtest8inst1.c 293327bc76823f473684d589a8160bde1f52c14e
 F tool/vdbe-compress.tcl d70ea6d8a19e3571d7ab8c9b75cba86d1173ff0f
-P 8d0f8a7f70d6fb42369411a934b30f8c8ca8322f
-R b7911d382713bc280913044ea85d74ac
+P a6dc0df304876b51cef5402b0e21330f10aabccf
+R 3c7f9d599e64d6dec70bc7c57170c180
 U drh
-Z c02c3c722b92c74f8ca12e8b8b09f756
+Z 9244a95073f7520d36ae60a889c580c8
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.6 (GNU/Linux)
 
-iD8DBQFMIktRoxKgR168RlERAtsxAJ0cxHA2orCkfndfRThPZzc2MckIXwCfWbUY
-HRJ9VxvoUAPVm7Tk8RvSPVM=
-=Ypdt
+iD8DBQFMIkuaoxKgR168RlERAieUAJ46609sl3q/ImzO0GN3QRFseZ54QwCfWgHD
+aojoUv0EOVG9VxDCwrmvb2I=
+=/HR/
 -----END PGP SIGNATURE-----
index e2fe51707f5f0adac41a9f5fb728443bf5961481..31c3479f7e07371d06ee17dcc8a27a1a5058b8c8 100644 (file)
@@ -1 +1 @@
-a6dc0df304876b51cef5402b0e21330f10aabccf
\ No newline at end of file
+1727a81fed65bebfea43e0bda271584096d82785
\ No newline at end of file
index 517acad55a924463c67daf08deee2db9f6b3ca37..7cecee611b06d7978a951a8a61867ae7fb6426ba 100644 (file)
@@ -2099,17 +2099,22 @@ int sqlite3_get_autocommit(sqlite3 *db){
 int sqlite3CorruptError(int lineno){
   testcase( sqlite3GlobalConfig.xLog!=0 );
   sqlite3_log(SQLITE_CORRUPT,
-              "database corruption found by source line %d", lineno);
+              "database corruption at line %d of [%.10s]",
+              lineno, 20+sqlite3_sourceid());
   return SQLITE_CORRUPT;
 }
 int sqlite3MisuseError(int lineno){
   testcase( sqlite3GlobalConfig.xLog!=0 );
-  sqlite3_log(SQLITE_MISUSE, "misuse detected by source line %d", lineno);
+  sqlite3_log(SQLITE_MISUSE, 
+              "misuse at line %d of [%.10s]",
+              lineno, 20+sqlite3_sourceid());
   return SQLITE_MISUSE;
 }
 int sqlite3CantopenError(int lineno){
   testcase( sqlite3GlobalConfig.xLog!=0 );
-  sqlite3_log(SQLITE_CANTOPEN, "cannot open file at source line %d", lineno);
+  sqlite3_log(SQLITE_CANTOPEN, 
+              "cannot open file at line %d of [%.10s]",
+              lineno, 20+sqlite3_sourceid());
   return SQLITE_CANTOPEN;
 }