]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
Remove from os_unix.c pointless logic that tries to prevent a recurrence of
authordrh <drh@noemail.net>
Tue, 24 Nov 2015 16:40:23 +0000 (16:40 +0000)
committerdrh <drh@noemail.net>
Tue, 24 Nov 2015 16:40:23 +0000 (16:40 +0000)
a warning message that can only occur once.

FossilOrigin-Name: 20256177072caa4f2b4114038ad1c8f6e26bc562

manifest
manifest.uuid
src/os_unix.c

index 69d2b5459d877ac69d1cad17727108da5630a6ac..36e5b27570e9228536128c6326f856ce563a5c3d 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,5 +1,5 @@
-C Fix\sa\scomment\stypo\sin\sthe\sunix\sVFS.\s\sNo\schanges\sto\scode.
-D 2015-11-24T15:12:47.482
+C Remove\sfrom\sos_unix.c\spointless\slogic\sthat\stries\sto\sprevent\sa\srecurrence\sof\na\swarning\smessage\sthat\scan\sonly\soccur\sonce.
+D 2015-11-24T16:40:23.118
 F Makefile.in d828db6afa6c1fa060d01e33e4674408df1942a1
 F Makefile.linux-gcc 7bc79876b875010e8c8f9502eb935ca92aa3c434
 F Makefile.msc e928e68168df69b353300ac87c10105206653a03
@@ -323,7 +323,7 @@ F src/os.c 8fd25588eeba74068d41102d26810e216999b6c8
 F src/os.h 3e57a24e2794a94d3cf2342c6d9a884888cd96bf
 F src/os_common.h abdb9a191a367793268fe553d25bab894e986a0e
 F src/os_setup.h c9d4553b5aaa6f73391448b265b89bed0b890faa
-F src/os_unix.c 3ca4a23db3ad0b809a0b8d7f879cf66f56b693d5
+F src/os_unix.c 80ec49758dbce979e4f89eda7695bbc01b0c4cd3
 F src/os_win.c 386fba30419e8458b13209781c2af5590eab2811
 F src/os_win.h eb7a47aa17b26b77eb97e4823f20a00b8bda12ca
 F src/pager.c 18341e2b759b447cbc82fb9215d08d9c5864e92e
@@ -1404,7 +1404,7 @@ F tool/vdbe_profile.tcl 246d0da094856d72d2c12efec03250d71639d19f
 F tool/warnings-clang.sh f6aa929dc20ef1f856af04a730772f59283631d4
 F tool/warnings.sh 48bd54594752d5be3337f12c72f28d2080cb630b
 F tool/win/sqlite.vsix deb315d026cc8400325c5863eef847784a219a2f
-P 6c2ddea65e1871b2fcb4991c5b3e6992993db3ea
-R 81ff6ba247633e5ac5ffc463969dd7f1
+P 32e138796c66c88e8cbb77aa3a4282a38d1f959a
+R 39dda72890996a1a2961e4723fcfeb24
 U drh
-Z 2bab8f8a8131461afe24bb3f0bfc9cb2
+Z 6e0fb81bf9792119f74030230681d485
index 501322045a2c7dc40d9083e5c2a245cd899a3db4..9df0621fea5555d3fcf030bfeb3035e841547e10 100644 (file)
@@ -1 +1 @@
-32e138796c66c88e8cbb77aa3a4282a38d1f959a
\ No newline at end of file
+20256177072caa4f2b4114038ad1c8f6e26bc562
\ No newline at end of file
index 768a2a9eec4ef6add0948ae58d468cf6106c36e7..82224053f049ee1a0165c49c63d6841a41088f32 100644 (file)
@@ -258,8 +258,7 @@ static pid_t randomnessPid = 0;
 #define UNIXFILE_DELETE      0x20     /* Delete on close */
 #define UNIXFILE_URI         0x40     /* Filename might have query parameters */
 #define UNIXFILE_NOLOCK      0x80     /* Do no file locking */
-#define UNIXFILE_WARNED    0x0100     /* verifyDbFile() warnings issued */
-#define UNIXFILE_BLOCK     0x0200     /* Next SHM lock might block */
+#define UNIXFILE_BLOCK     0x0100     /* Next SHM lock might block */
 
 /*
 ** Include code that is common to all os_*.c files
@@ -1360,30 +1359,21 @@ static int fileHasMoved(unixFile *pFile){
 static void verifyDbFile(unixFile *pFile){
   struct stat buf;
   int rc;
-  if( pFile->ctrlFlags & UNIXFILE_WARNED ){
-    /* One or more of the following warnings have already been issued.  Do not
-    ** repeat them so as not to clutter the error log */
-    return;
-  }
   rc = osFstat(pFile->h, &buf);
   if( rc!=0 ){
     sqlite3_log(SQLITE_WARNING, "cannot fstat db file %s", pFile->zPath);
-    pFile->ctrlFlags |= UNIXFILE_WARNED;
     return;
   }
   if( buf.st_nlink==0 && (pFile->ctrlFlags & UNIXFILE_DELETE)==0 ){
     sqlite3_log(SQLITE_WARNING, "file unlinked while open: %s", pFile->zPath);
-    pFile->ctrlFlags |= UNIXFILE_WARNED;
     return;
   }
   if( buf.st_nlink>1 ){
     sqlite3_log(SQLITE_WARNING, "multiple links to file: %s", pFile->zPath);
-    pFile->ctrlFlags |= UNIXFILE_WARNED;
     return;
   }
   if( fileHasMoved(pFile) ){
     sqlite3_log(SQLITE_WARNING, "file renamed while open: %s", pFile->zPath);
-    pFile->ctrlFlags |= UNIXFILE_WARNED;
     return;
   }
 }