summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2020-02-22 19:31:52 -0500
committerwolfbeast <mcwerewolf@wolfbeast.com>2020-04-14 12:52:05 +0200
commit2dea4edfd7cf9a760149da220e60dddb2b0b0d09 (patch)
tree16507200a4b68b3602a31972191abe39cf0ea0a8
parent54cb1b965e5a6d6bd2475c909486468f5e6dd982 (diff)
downloadUXP-2dea4edfd7cf9a760149da220e60dddb2b0b0d09.tar
UXP-2dea4edfd7cf9a760149da220e60dddb2b0b0d09.tar.gz
UXP-2dea4edfd7cf9a760149da220e60dddb2b0b0d09.tar.lz
UXP-2dea4edfd7cf9a760149da220e60dddb2b0b0d09.tar.xz
UXP-2dea4edfd7cf9a760149da220e60dddb2b0b0d09.zip
Issue #1053 - Remove android support from storage/mozStorageConnection.cpp
-rw-r--r--storage/mozStorageConnection.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/storage/mozStorageConnection.cpp b/storage/mozStorageConnection.cpp
index 10297fca1..e6c357185 100644
--- a/storage/mozStorageConnection.cpp
+++ b/storage/mozStorageConnection.cpp
@@ -1955,10 +1955,6 @@ Connection::RemoveProgressHandler(mozIStorageProgressHandler **_oldHandler)
NS_IMETHODIMP
Connection::SetGrowthIncrement(int32_t aChunkSize, const nsACString &aDatabaseName)
{
- // Bug 597215: Disk space is extremely limited on Android
- // so don't preallocate space. This is also not effective
- // on log structured file systems used by Android devices
-#if !defined(ANDROID) && !defined(MOZ_PLATFORM_MAEMO)
// Don't preallocate if less than 500MiB is available.
int64_t bytesAvailable;
nsresult rv = mDatabaseFile->GetDiskSpaceAvailable(&bytesAvailable);
@@ -1972,7 +1968,7 @@ Connection::SetGrowthIncrement(int32_t aChunkSize, const nsACString &aDatabaseNa
: nullptr,
SQLITE_FCNTL_CHUNK_SIZE,
&aChunkSize);
-#endif
+
return NS_OK;
}