Details
-
Bug
-
Resolution: Done
-
Major - P3
-
None
-
None
-
None
-
db.version() = 3.2.8
db.serverBuildInfo() as below
{
"allocator" : "tcmalloc",
"bits" : 64,
"buildEnvironment" : {
"cc" : "cl: Microsoft (R) C/C++ Optimizing Compiler Version 18.00.31101 for x64",
"ccflags" : "/nologo /EHsc /W3 /wd4355 /wd4800 /wd4267 /wd4244 /wd4290 /wd4068 /wd4351 /we4013 /we4099 /we4930 /Z7 /errorReport:none /MD /O2 /Oy- /Gw /Gy /Zc:inline",
"cxx" : "cl: Microsoft (R) C/C++ Optimizing Compiler Version 18.00.31101 for x64",
"cxxflags" : "/TP",
"distarch" : "x86_64",
"distmod" : "2008plus-ssl",
"linkflags" : "/nologo /DEBUG /INCREMENTAL:NO /LARGEADDRESSAWARE /OPT:REF",
"target_arch" : "x86_64",
"target_os" : "windows"
},
"debug" : false,
"gitVersion" : "ed70e33130c977bda0024c125b56d159573dbaf0",
"javascriptEngine" : "mozjs",
"maxBsonObjectSize" : 16777216,
"modules" : [ ],
"ok" : 1,
"openssl" : {
"compiled" : "OpenSSL 1.0.1p-fips 9 Jul 2015",
"running" : "OpenSSL 1.0.1p-fips 9 Jul 2015"
},
"storageEngines" : [
"devnull",
"ephemeralForTest",
"mmapv1",
"wiredTiger"
],
"sysInfo" : "deprecated",
"targetMinOS" : "Windows 7/Windows Server 2008 R2",
"version" : "3.2.8",
"versionArray" : [
3,
2,
8,
0
]
}db.version() = 3.2.8 db.serverBuildInfo() as below { "allocator" : "tcmalloc", "bits" : 64, "buildEnvironment" : { "cc" : "cl: Microsoft (R) C/C++ Optimizing Compiler Version 18.00.31101 for x64", "ccflags" : "/nologo /EHsc /W3 /wd4355 /wd4800 /wd4267 /wd4244 /wd4290 /wd4068 /wd4351 /we4013 /we4099 /we4930 /Z7 /errorReport:none /MD /O2 /Oy- /Gw /Gy /Zc:inline", "cxx" : "cl: Microsoft (R) C/C++ Optimizing Compiler Version 18.00.31101 for x64", "cxxflags" : "/TP", "distarch" : "x86_64", "distmod" : "2008plus-ssl", "linkflags" : "/nologo /DEBUG /INCREMENTAL:NO /LARGEADDRESSAWARE /OPT:REF", "target_arch" : "x86_64", "target_os" : "windows" }, "debug" : false, "gitVersion" : "ed70e33130c977bda0024c125b56d159573dbaf0", "javascriptEngine" : "mozjs", "maxBsonObjectSize" : 16777216, "modules" : [ ], "ok" : 1, "openssl" : { "compiled" : "OpenSSL 1.0.1p-fips 9 Jul 2015", "running" : "OpenSSL 1.0.1p-fips 9 Jul 2015" }, "storageEngines" : [ "devnull", "ephemeralForTest", "mmapv1", "wiredTiger" ], "sysInfo" : "deprecated", "targetMinOS" : "Windows 7/Windows Server 2008 R2", "version" : "3.2.8", "versionArray" : [ 3, 2, 8, 0 ] }
-
ALL
-
Description
evn description:
standalone database.
6 document data exists in collection.
but we got two different results via pure count function and aggregate count function according to below docs.
https://docs.mongodb.com/manual/reference/command/count/#dbcmd.count
I'm not sure whether this is a bug or my command is wrong.