diff options
author | Mathias Stearn <mathias@10gen.com> | 2014-11-04 17:07:31 -0500 |
---|---|---|
committer | Mathias Stearn <mathias@10gen.com> | 2014-11-04 17:45:53 -0500 |
commit | ff61cb160b2be922f8e91675d1f8135b71233ad3 (patch) | |
tree | 17b140ff0a4262ffb9f36ffc2312a490839b11fa /src/mongo/util/assert_util.h | |
parent | 2a741dfecb4fa1ee894ddbfc81b21f42687bc46f (diff) | |
download | mongo-ff61cb160b2be922f8e91675d1f8135b71233ad3.tar.gz |
Define dassert in terms of invariant rather than fassert
Gives better error messages on failures.
Diffstat (limited to 'src/mongo/util/assert_util.h')
-rw-r--r-- | src/mongo/util/assert_util.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/util/assert_util.h b/src/mongo/util/assert_util.h index 7bc464ad981..572dc4ee1ba 100644 --- a/src/mongo/util/assert_util.h +++ b/src/mongo/util/assert_util.h @@ -276,7 +276,7 @@ namespace mongo { could be slow. */ #if defined(_DEBUG) -# define MONGO_dassert(x) fassert(16199, (x)) +# define MONGO_dassert(x) invariant(x) #else # define MONGO_dassert(x) #endif |