mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-04 22:37:29 +09:00
Issue #1053 - Remove android support from storage/mozStorageConnection.cpp
This commit is contained in:
parent
8e0b45eb4a
commit
659e10b6dd
1 changed files with 1 additions and 5 deletions
|
|
@ -1955,10 +1955,6 @@ Connection::RemoveProgressHandler(mozIStorageProgressHandler **_oldHandler)
|
||||||
NS_IMETHODIMP
|
NS_IMETHODIMP
|
||||||
Connection::SetGrowthIncrement(int32_t aChunkSize, const nsACString &aDatabaseName)
|
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.
|
// Don't preallocate if less than 500MiB is available.
|
||||||
int64_t bytesAvailable;
|
int64_t bytesAvailable;
|
||||||
nsresult rv = mDatabaseFile->GetDiskSpaceAvailable(&bytesAvailable);
|
nsresult rv = mDatabaseFile->GetDiskSpaceAvailable(&bytesAvailable);
|
||||||
|
|
@ -1972,7 +1968,7 @@ Connection::SetGrowthIncrement(int32_t aChunkSize, const nsACString &aDatabaseNa
|
||||||
: nullptr,
|
: nullptr,
|
||||||
SQLITE_FCNTL_CHUNK_SIZE,
|
SQLITE_FCNTL_CHUNK_SIZE,
|
||||||
&aChunkSize);
|
&aChunkSize);
|
||||||
#endif
|
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue