mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 13:21:05 +00:00
Bug 1194023 - Part 2: Only check for sort operations if mozStorage logging is enabled. r=mak
This commit is contained in:
parent
af00644989
commit
1874580339
@ -320,10 +320,13 @@ AsyncExecuteStatements::executeAndProcessStatement(sqlite3_stmt *aStatement,
|
||||
}
|
||||
} while (hasResults);
|
||||
|
||||
#ifdef DEBUG
|
||||
// Check to make sure that this statement was smart about what it did.
|
||||
checkAndLogStatementPerformance(aStatement);
|
||||
#ifndef MOZ_STORAGE_SORTWARNING_SQL_DUMP
|
||||
if (MOZ_LOG_TEST(gStorageLog, LogLevel::Warning))
|
||||
#endif
|
||||
{
|
||||
// Check to make sure that this statement was smart about what it did.
|
||||
checkAndLogStatementPerformance(aStatement);
|
||||
}
|
||||
|
||||
// If we are done, we need to set our state accordingly while we still hold
|
||||
// our mutex. We would have already returned if we were canceled or had
|
||||
|
Loading…
Reference in New Issue
Block a user