mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-30 04:17:31 +09:00
Issue #1382 - Annotate crash with database name when storage connection not closed
Reported on https://bugzilla.mozilla.org/show_bug.cgi?id=1384036 This was fixed with an unrelated issue: https://bugzilla.mozilla.org/show_bug.cgi?id=1372823
This commit is contained in:
parent
6d3500bb48
commit
6dc8a7d813
1 changed files with 7 additions and 1 deletions
|
|
@ -27,7 +27,7 @@
|
||||||
|
|
||||||
#include "sqlite3.h"
|
#include "sqlite3.h"
|
||||||
|
|
||||||
#ifdef SQLITE_OS_WIN
|
#ifdef XP_WIN
|
||||||
// "windows.h" was included and it can #define lots of things we care about...
|
// "windows.h" was included and it can #define lots of things we care about...
|
||||||
#undef CompareString
|
#undef CompareString
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -917,6 +917,12 @@ Service::Observe(nsISupports *, const char *aTopic, const char16_t *)
|
||||||
getConnections(connections);
|
getConnections(connections);
|
||||||
for (uint32_t i = 0, n = connections.Length(); i < n; i++) {
|
for (uint32_t i = 0, n = connections.Length(); i < n; i++) {
|
||||||
if (!connections[i]->isClosed()) {
|
if (!connections[i]->isClosed()) {
|
||||||
|
#ifdef DEBUG
|
||||||
|
nsCString msg;
|
||||||
|
msg.AppendPrintf("Storage connection to '%s' was not closed.",
|
||||||
|
connections[i]->getFilename().get());
|
||||||
|
NS_ERROR(msg.get());
|
||||||
|
#endif
|
||||||
MOZ_CRASH();
|
MOZ_CRASH();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue