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 7f37ec4ee0
commit ac849c9396

View File

@ -404,16 +404,24 @@ Statement::internalFinalize(bool aDestructing)
" 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;