From 9676b09bdfa95152ebb9f0d6ac76faaa3e1cb7a4 Mon Sep 17 00:00:00 2001 From: "dbaron%dbaron.org" Date: Wed, 27 Jun 2007 00:13:01 +0000 Subject: [PATCH] Temporarily change assertion to warning so we can make assertions fatal on tinderbox. b=340242 r=peterv sr=brendan git-svn-id: svn://10.0.0.236/trunk@228787 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/rdf/datasource/src/nsLocalStore.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mozilla/rdf/datasource/src/nsLocalStore.cpp b/mozilla/rdf/datasource/src/nsLocalStore.cpp index 7937d24b3f4..fa93f35dd1e 100644 --- a/mozilla/rdf/datasource/src/nsLocalStore.cpp +++ b/mozilla/rdf/datasource/src/nsLocalStore.cpp @@ -1,4 +1,5 @@ /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* vim: set cindent tabstop=4 expandtab shiftwidth=4: */ /* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * @@ -332,7 +333,11 @@ NS_IMETHODIMP LocalStoreImpl::Flush() { nsCOMPtr remote = do_QueryInterface(mInner); - NS_ASSERTION(remote != nsnull, "not an nsIRDFRemoteDataSource"); + // FIXME Bug 340242: Temporarily make this a warning rather than an + // assertion until we sort out the ordering of how we write + // everything to the localstore, flush it, and disconnect it when + // we're getting profile-change notifications. + NS_WARN_IF_FALSE(remote != nsnull, "not an nsIRDFRemoteDataSource"); if (! remote) return NS_ERROR_UNEXPECTED;