summaryrefslogtreecommitdiff
path: root/stdafx.cpp
diff options
context:
space:
mode:
authorunknown <Administrator@.(none)>2009-01-18 20:31:33 -0500
committerunknown <Administrator@.(none)>2009-01-18 20:31:33 -0500
commitcb90806ce18d7b3793295c633dd346c4395480aa (patch)
tree9f9b3bd9aa1f64929223647829e0be80078bc4d4 /stdafx.cpp
parentc0961eb637c18a1344fbf67a716e660518a397f7 (diff)
downloadmongo-cb90806ce18d7b3793295c633dd346c4395480aa.tar.gz
basic security
Diffstat (limited to 'stdafx.cpp')
-rw-r--r--stdafx.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/stdafx.cpp b/stdafx.cpp
index 1985bb94f79..1ed9ea4a6c5 100644
--- a/stdafx.cpp
+++ b/stdafx.cpp
@@ -56,6 +56,11 @@ namespace mongo {
throw AssertionException();
}
+ void uassert_nothrow(const char *msg) {
+ lastAssert[3].set(msg, getDbContext().c_str(), "", 0);
+ raiseError(msg);
+ }
+
int uacount = 0;
void uasserted(const char *msg) {
if ( ++uacount < 100 )