mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1159303 - Reduce noise due to sort operations warnings. r=bent
This commit is contained in:
parent
6a549ad452
commit
f5594ad8ad
@ -96,22 +96,18 @@ checkAndLogStatementPerformance(sqlite3_stmt *aStatement)
|
||||
if (::strstr(sql, "/* do not warn (bug "))
|
||||
return;
|
||||
|
||||
nsAutoCString message;
|
||||
message.AppendInt(count);
|
||||
if (count == 1)
|
||||
message.AppendLiteral(" sort operation has ");
|
||||
else
|
||||
message.AppendLiteral(" sort operations have ");
|
||||
message.AppendLiteral("occurred for the SQL statement '");
|
||||
nsAutoCString message("Suboptimal indexes for the SQL statement ");
|
||||
#ifdef MOZ_STORAGE_SORTWARNING_SQL_DUMP
|
||||
message.AppendLiteral("SQL command: ");
|
||||
message.Append('`');
|
||||
message.Append(sql);
|
||||
message.AppendLiteral("` [");
|
||||
message.AppendInt(count);
|
||||
message.AppendLiteral(" sort operation(s)]");
|
||||
#else
|
||||
nsPrintfCString address("0x%p", aStatement);
|
||||
message.Append(address);
|
||||
#endif
|
||||
message.Append("'. See https://developer.mozilla.org/En/Storage/Warnings "
|
||||
"details.");
|
||||
message.AppendLiteral(" (http://mzl.la/1FuID0j).");
|
||||
NS_WARNING(message.get());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user