Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(225)

Unified Diff: third_party/sqlite/system-sqlite.patch

Issue 7575027: Linux: backport SQLite's http://sqlite.org/src/ci/9109128cb5 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/sqlite/src/src/os_unix.c ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/sqlite/system-sqlite.patch
diff --git a/third_party/sqlite/system-sqlite.patch b/third_party/sqlite/system-sqlite.patch
new file mode 100644
index 0000000000000000000000000000000000000000..f61f019e618484e10773eba30cae3a8401619fd6
--- /dev/null
+++ b/third_party/sqlite/system-sqlite.patch
@@ -0,0 +1,48 @@
+This is a backport of http://sqlite.org/src/ci/9109128cb5,
+which is needed for experiments with using unpatched sqlite.
+If you hit a merge conflict on this file it is most likely
+that you've upgraded to version of sqlite that includes this patch.
+Index: src/os_unix.c
+===================================================================
+--- src/os_unix.c
++++ src/os_unix.c
+@@ -4787,11 +4787,11 @@
+ ** ignored and -1 is returned. The caller will try to open a new file
+ ** descriptor on the same path, fail, and return an error to SQLite.
+ **
+ ** Even if a subsequent open() call does succeed, the consequences of
+ ** not searching for a resusable file descriptor are not dire. */
+- if( 0==stat(zPath, &sStat) ){
++ if( 0==osStat(zPath, &sStat) ){
+ unixInodeInfo *pInode;
+
+ unixEnterMutex();
+ pInode = inodeList;
+ while( pInode && (pInode->fileId.dev!=sStat.st_dev
+@@ -4863,11 +4863,11 @@
+ while( nDb>0 && zPath[nDb]!='-' ) nDb--;
+ if( nDb==0 ) return SQLITE_OK;
+ memcpy(zDb, zPath, nDb);
+ zDb[nDb] = '\0';
+
+- if( 0==stat(zDb, &sStat) ){
++ if( 0==osStat(zDb, &sStat) ){
+ *pMode = sStat.st_mode & 0777;
+ }else{
+ rc = SQLITE_IOERR_FSTAT;
+ }
+ }else if( flags & SQLITE_OPEN_DELETEONCLOSE ){
+@@ -5208,11 +5208,11 @@
+ assert(!"Invalid flags argument");
+ }
+ *pResOut = (osAccess(zPath, amode)==0);
+ if( flags==SQLITE_ACCESS_EXISTS && *pResOut ){
+ struct stat buf;
+- if( 0==stat(zPath, &buf) && buf.st_size==0 ){
++ if( 0==osStat(zPath, &buf) && buf.st_size==0 ){
+ *pResOut = 0;
+ }
+ }
+ return SQLITE_OK;
+ }
+
« no previous file with comments | « third_party/sqlite/src/src/os_unix.c ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698