diff options
author | vichang <vichang@chromium.org> | 2016-01-28 14:09:03 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-01-28 22:09:52 +0000 |
commit | 7ce37c1ec34e33f7e2c4b87341f16885942c3e5c (patch) | |
tree | b91e0bc688a150d03e12ca8f54cf2d700ecfef5f /sql/connection.h | |
parent | 12607e58c74926c0480c08f19214908f987a37a3 (diff) | |
download | chromium_src-7ce37c1ec34e33f7e2c4b87341f16885942c3e5c.zip chromium_src-7ce37c1ec34e33f7e2c4b87341f16885942c3e5c.tar.gz chromium_src-7ce37c1ec34e33f7e2c4b87341f16885942c3e5c.tar.bz2 |
Add flag to disable mmap in all sql connection in work build
Work Chrome runs in environment without a proper mmap support.
Disable it for all work chrome.
BUG=554269
Review URL: https://codereview.chromium.org/1637683003
Cr-Commit-Position: refs/heads/master@{#372179}
Diffstat (limited to 'sql/connection.h')
-rw-r--r-- | sql/connection.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sql/connection.h b/sql/connection.h index b35e2fa..4606a1f 100644 --- a/sql/connection.h +++ b/sql/connection.h @@ -149,9 +149,12 @@ class SQL_EXPORT Connection { // other platforms. void set_restrict_to_user() { restrict_to_user_ = true; } - // Call to opt out of memory-mapped file I/O. + // Call to opt out of memory-mapped file I/O on per connection basis. void set_mmap_disabled() { mmap_disabled_ = true; } + // Call to opt out of memory-mapped file I/O on all connections. + static void set_mmap_disabled_by_default(); + // Set an error-handling callback. On errors, the error number (and // statement, if available) will be passed to the callback. // |