summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron <aaron@10gen.com>2009-03-23 17:04:47 -0400
committerAaron <aaron@10gen.com>2009-03-23 17:04:47 -0400
commitea44d9886c354ae8bce9d24a5b5e6d948b3b7992 (patch)
tree8fea3ac632a2e4960b1baeddc7cd2f48978ff2cf
parent8ca46fb7c5d05d22aff7813262af9b05fa7b1ab7 (diff)
parentd3340fb7aedf267e84ce3cba26cab1e8625fb576 (diff)
downloadmongo-ea44d9886c354ae8bce9d24a5b5e6d948b3b7992.tar.gz
Merge branch 'master' of git@github.com:mongodb/mongo
-rw-r--r--db/db.vcproj4
-rw-r--r--db/jsobj.h2
-rw-r--r--jstests/cursor8.js3
-rw-r--r--s/dbgrid.vcproj4
4 files changed, 12 insertions, 1 deletions
diff --git a/db/db.vcproj b/db/db.vcproj
index 9724100ec40..9594f73e683 100644
--- a/db/db.vcproj
+++ b/db/db.vcproj
@@ -52,6 +52,7 @@
WarningLevel="3"
Detect64BitPortabilityProblems="false"
DebugInformationFormat="4"
+ DisableSpecificWarnings="4355"
/>
<Tool
Name="VCManagedResourceCompilerTool"
@@ -130,6 +131,7 @@
PrecompiledHeaderThrough="stdafx.h"
WarningLevel="3"
DebugInformationFormat="3"
+ DisableSpecificWarnings="4355"
/>
<Tool
Name="VCManagedResourceCompilerTool"
@@ -208,6 +210,7 @@
PrecompiledHeaderThrough="stdafx.h"
WarningLevel="3"
DebugInformationFormat="3"
+ DisableSpecificWarnings="4355"
/>
<Tool
Name="VCManagedResourceCompilerTool"
@@ -287,6 +290,7 @@
WarningLevel="3"
Detect64BitPortabilityProblems="false"
DebugInformationFormat="4"
+ DisableSpecificWarnings="4355"
/>
<Tool
Name="VCManagedResourceCompilerTool"
diff --git a/db/jsobj.h b/db/jsobj.h
index 028bd7302b1..b551b4bf828 100644
--- a/db/jsobj.h
+++ b/db/jsobj.h
@@ -799,7 +799,7 @@ namespace mongo {
const char * _fieldName;
BSONObjBuilder * _builder;
- bool haveSubobj() const { return _subobj.get(); }
+ bool haveSubobj() const { return _subobj.get() != 0; }
BSONObjBuilder *subobj();
auto_ptr< BSONObjBuilder > _subobj;
};
diff --git a/jstests/cursor8.js b/jstests/cursor8.js
index 9d0eced80d2..169bb5d5deb 100644
--- a/jstests/cursor8.js
+++ b/jstests/cursor8.js
@@ -2,6 +2,9 @@ db.f.drop();
db.f.save( {} );
db.f.save( {} );
db.f.save( {} );
+
+db.getMongo().getDB( "admin" ).runCommand( {closeAllDatabases:1} );
+
assert.eq( 0, db.runCommand( {cursorInfo:1} ).clientCursors_size );
assert.eq( 2, db.f.find( {} ).limit( 2 ).toArray().length );
assert.eq( 1, db.runCommand( {cursorInfo:1} ).clientCursors_size );
diff --git a/s/dbgrid.vcproj b/s/dbgrid.vcproj
index babafe606f7..fd5dcc7d560 100644
--- a/s/dbgrid.vcproj
+++ b/s/dbgrid.vcproj
@@ -50,6 +50,7 @@
PrecompiledHeaderThrough="stdafx.h"
WarningLevel="3"
DebugInformationFormat="4"
+ DisableSpecificWarnings="4355"
/>
<Tool
Name="VCManagedResourceCompilerTool"
@@ -125,6 +126,7 @@
UsePrecompiledHeader="2"
WarningLevel="3"
DebugInformationFormat="3"
+ DisableSpecificWarnings="4355"
/>
<Tool
Name="VCManagedResourceCompilerTool"
@@ -202,6 +204,7 @@
UsePrecompiledHeader="2"
WarningLevel="3"
DebugInformationFormat="3"
+ DisableSpecificWarnings="4355"
/>
<Tool
Name="VCManagedResourceCompilerTool"
@@ -279,6 +282,7 @@
PrecompiledHeaderThrough="stdafx.h"
WarningLevel="3"
DebugInformationFormat="4"
+ DisableSpecificWarnings="4355"
/>
<Tool
Name="VCManagedResourceCompilerTool"