Well, I had intended to make all of the assertions streamable, a la
Google's CHECK, eventually, but never got around to it.  I'm working on
making at least the fatal asssertions (fassert) streamable, and will
respond here and on SERVER-9751 when I do.  Should be sometime in the next
week to two, after I get a few other things taken care of.


On Thu, Jun 6, 2013 at 3:53 AM, Alexander Artemenko <
notifications@github.com> wrote:

> In src/third_party/s2/base/logging.h:
>
> >
> >  // Always-on checking
> > -#define CHECK(x)	if(x){}else LogMessageFatal(__FILE__, __LINE__).stream() << "Check failed: " #x
> > +#define CHECK(x)	if(x){}else VLOG(2) << __FILE__ << ":" << __LINE__ << ": Check failed: " #x
>
> Well, guys, I found that CHECK can't be just redefined as a MONGO_verify.
> Because originally, CHECK returns an object to be used as a stream for
> error message.
>
> What should be used in this case? Probably MONGO_massert? If yes, then
> what should I use as msgid?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/mongodb/mongo/pull/430/files#r4562525>
> .
>