Permalink
Browse files

safety

  • Loading branch information...
1 parent adb706e commit c2496691f11bab8bef8e9a1cbce0d356577d09cd @RedBeard0531 RedBeard0531 committed Dec 16, 2010
Showing with 5 additions and 0 deletions.
  1. +5 −0 db/dur.cpp
View
@@ -297,6 +297,11 @@ namespace mongo {
const char *p = (const char *) mmf->getView();
const char *w = (const char *) mmf->view_write();
+ if (!p && !w) return;
+
+ assert(p);
+ assert(w);
+
data += mmf->length();
assert( mmf->length() == (unsigned) mmf->length() );

0 comments on commit c249669

Please sign in to comment.