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

This commit is contained in:
David Rajchenbach-Teller 2013-09-19 08:56:10 -04:00
parent eb08749f12
commit 11c6482914

View File

@ -401,19 +401,27 @@ 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
mDBStatement = nullptr;