зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1398167 - Remove the temporary fix for not upgrading shema version from 25 to 26; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D46905 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
3c3c1427b2
Коммит
686753c829
|
@ -2511,17 +2511,7 @@ nsresult ReadResponse(mozIStorageConnection* aConn, EntryId aEntryId,
|
|||
return rv;
|
||||
}
|
||||
|
||||
#ifdef NIGHTLY_BUILD
|
||||
bool shouldUpdateTo26 = false;
|
||||
if (nullPadding && aSavedResponseOut->mValue.type() == ResponseType::Opaque) {
|
||||
// XXXtt: This should be removed in the future (e.g. Nightly 58) by
|
||||
// bug 1398167.
|
||||
shouldUpdateTo26 = true;
|
||||
aSavedResponseOut->mValue.paddingSize() = 0;
|
||||
} else if (nullPadding) {
|
||||
#else
|
||||
if (nullPadding) {
|
||||
#endif // NIGHTLY_BUILD
|
||||
MOZ_DIAGNOSTIC_ASSERT(aSavedResponseOut->mValue.type() !=
|
||||
ResponseType::Opaque);
|
||||
aSavedResponseOut->mValue.paddingSize() =
|
||||
|
@ -2545,21 +2535,6 @@ nsresult ReadResponse(mozIStorageConnection* aConn, EntryId aEntryId,
|
|||
return rv;
|
||||
}
|
||||
|
||||
#ifdef NIGHTLY_BUILD
|
||||
if (shouldUpdateTo26) {
|
||||
// XXXtt: This is a quick fix for not updating properly in Nightly 57.
|
||||
// Note: This should be removed in the future (e.g. Nightly 58) by
|
||||
// bug 1398167.
|
||||
rv = aConn->ExecuteSimpleSQL(
|
||||
NS_LITERAL_CSTRING("UPDATE entries SET response_padding_size = 0 "
|
||||
"WHERE response_type = 4 " // opaque response
|
||||
"AND response_padding_size IS NULL"));
|
||||
if (NS_WARN_IF(NS_FAILED(rv))) {
|
||||
return rv;
|
||||
}
|
||||
}
|
||||
#endif // NIGHTLY_BUILD
|
||||
|
||||
rv = aConn->CreateStatement(NS_LITERAL_CSTRING("SELECT "
|
||||
"name, "
|
||||
"value "
|
||||
|
|
Загрузка…
Ссылка в новой задаче