Bug 914005 - Tweak storage warnings on shutdown. r=mak

This commit is contained in:
David Rajchenbach-Teller 2013-09-19 09:19:02 -04:00
parent f71dd4c37e
commit 988712233b

View File

@ -401,19 +401,29 @@ Statement::internalFinalize(bool aDestructing)
//
char *msg = ::PR_smprintf("SQL statement (%x) should have been finalized"
"before garbage-collection. For more details on this statement, set"
"NSPR_LOG_MESSAGES=mozStorage:5 .",
" before garbage-collection. For more details on this statement, set"
" NSPR_LOG_MESSAGES=mozStorage:5 .",
mDBStatement);
//
// Note that we can't display the statement itself, as the data structure
// is not valid anymore. However, the address shown here should help
// developers correlate with the more complete debug message triggered
// by AsyncClose().
//
#if 0
// Deactivate the warning until we have fixed the exising culprit
// (see bug 914070).
NS_WARNING(msg);
#endif // 0
PR_LOG(gStorageLog, PR_LOG_WARNING, (msg));
::PR_smprintf_free(msg);
}
#endif // DEBUG
#endif
mDBStatement = nullptr;