diff options
Diffstat (limited to 'chrome/browser/sync/util/query_helpers.cc')
-rw-r--r-- | chrome/browser/sync/util/query_helpers.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/sync/util/query_helpers.cc b/chrome/browser/sync/util/query_helpers.cc index 34dc79f..c27a877 100644 --- a/chrome/browser/sync/util/query_helpers.cc +++ b/chrome/browser/sync/util/query_helpers.cc @@ -65,7 +65,7 @@ int SqliteOpen(PathString filename, sqlite3** db) { (filename.c_str(), db); LOG_IF(ERROR, SQLITE_OK != result) << "Error opening " << filename << ": " << result; -#ifdef OS_WIN +#if defined(OS_WIN) if (SQLITE_OK == result) { // Make sure we mark the db file as not indexed so since if any other app // opens it, it can break our db locking. @@ -76,12 +76,12 @@ int SqliteOpen(PathString filename, sqlite3** db) { attrs = attrs | FILE_ATTRIBUTE_NOT_CONTENT_INDEXED; SetFileAttributes(filename.c_str(), attrs); } -#endif // OS_WIN +#endif // defined(OS_WIN) // Be patient as we set pragmas. sqlite3_busy_timeout(*db, numeric_limits<int>::max()); -#ifndef DISABLE_SQLITE_FULL_FSYNC +#if !defined(DISABLE_SQLITE_FULL_FSYNC) ExecOrDie(*db, "PRAGMA fullfsync = 1"); -#endif // DISABLE_SQLITE_FULL_FSYNC +#endif // !defined(DISABLE_SQLITE_FULL_FSYNC) ExecOrDie(*db, "PRAGMA synchronous = 2"); sqlite3_busy_timeout(*db, 0); return SQLITE_OK; |