summaryrefslogtreecommitdiffstats
path: root/third_party
diff options
context:
space:
mode:
authorshess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-08 20:28:32 +0000
committershess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-08 20:28:32 +0000
commitdff42017c2df3c0b51fc083cb1c9fe15a314374f (patch)
treea04d3b5cbfc6e0e7c94a5a37e59a4c2d3a90e767 /third_party
parent1c1a7e590040ee3924343a75099047e9fdc03301 (diff)
downloadchromium_src-dff42017c2df3c0b51fc083cb1c9fe15a314374f.zip
chromium_src-dff42017c2df3c0b51fc083cb1c9fe15a314374f.tar.gz
chromium_src-dff42017c2df3c0b51fc083cb1c9fe15a314374f.tar.bz2
Revert "SQLite: logging to track down SQLITE_IOERR_WRITE on waterfall."
Remove diagnostic logging, as I no longer see it firing on the waterfall. Original revision: http://codereview.chromium.org/3473026 http://src.chromium.org/viewvc/chrome?view=rev&revision=60938 BUG=66938,56427 TEST=none Review URL: http://codereview.chromium.org/6410093 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74163 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party')
-rw-r--r--third_party/sqlite/src/src/os_unix.c18
1 files changed, 2 insertions, 16 deletions
diff --git a/third_party/sqlite/src/src/os_unix.c b/third_party/sqlite/src/src/os_unix.c
index 6ec2b88..3ebfa04 100644
--- a/third_party/sqlite/src/src/os_unix.c
+++ b/third_party/sqlite/src/src/os_unix.c
@@ -2829,15 +2829,8 @@ static int seekAndWrite(unixFile *id, i64 offset, const void *pBuf, int cnt){
#else
newOffset = lseek(id->h, offset, SEEK_SET);
if( newOffset!=offset ){
- int capturedErrno = errno; /* Capture errno before fprintf(). */
- /* TODO(shess): Tracking a SQLITE_IOERR_WRITE being seen on the
- * waterfall. http://crbug.com/56427 */
- fprintf(stderr, "SQLite lseek error in seekAndWrite, "
- "offset == %d, rc == %d, errno == %d\n",
- (int)offset, (int)newOffset, capturedErrno);
- fflush(stderr);
if( newOffset == -1 ){
- ((unixFile*)id)->lastErrno = capturedErrno;
+ ((unixFile*)id)->lastErrno = errno;
}else{
((unixFile*)id)->lastErrno = 0;
}
@@ -2847,14 +2840,7 @@ static int seekAndWrite(unixFile *id, i64 offset, const void *pBuf, int cnt){
#endif
TIMER_END;
if( got<0 ){
- int capturedErrno = errno; /* Capture errno before fprintf(). */
- /* TODO(shess): Tracking a SQLITE_IOERR_WRITE being seen on the
- * waterfall. http://crbug.com/56427 */
- fprintf(stderr, "SQLite write error in seekAndWrite, "
- "cnt == %d, rc == %d, errno == %d\n",
- cnt, got, capturedErrno);
- fflush(stderr);
- ((unixFile*)id)->lastErrno = capturedErrno;
+ ((unixFile*)id)->lastErrno = errno;
}
OSTRACE5("WRITE %-3d %5d %7lld %llu\n", id->h, got, offset, TIMER_ELAPSED);