From c08524bf3ad810d69188f26491cb119e0628df50 Mon Sep 17 00:00:00 2001 From: dwight Date: Wed, 12 Jan 2011 10:08:49 -0500 Subject: [PATCH] safer --- db/dur_commitjob.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/db/dur_commitjob.cpp b/db/dur_commitjob.cpp index b73efb75f47..ecc4ce0ba37 100644 --- a/db/dur_commitjob.cpp +++ b/db/dur_commitjob.cpp @@ -23,6 +23,8 @@ namespace mongo { namespace dur { + BOOST_STATIC_ASSERT( UncommittedBytesLimit > BSONObjMaxInternalSize * 3 ); + void Writes::D::go(const Writes::D& d) { commitJob.wi()._insertWriteIntent(d.p, d.len); }