-
Type:
Bug
-
Resolution: Done
-
Priority:
Major - P3
-
None
-
Affects Version/s: 2.5.5
-
Component/s: Diagnostics, Storage
-
None
-
Storage Execution
-
ALL
-
None
-
None
-
None
-
None
-
None
-
None
-
None
This may be intentional, based on some commits in SERVER-8412, especially:
https://github.com/mongodb/mongo/commit/6718e33f5ecd0de4a8550afaf789c2fc416b6eee
MongoDB 2.4.9:
repl0:PRIMARY> db.createCollection('test', {capped: true, size: 1000})
{ "ok" : 1 }
repl0:PRIMARY> db.system.namespaces.findOne({name: 'test.test'}).options
{ "create" : "test", "capped" : true, "size" : 1000 }
MongoDB 2.5.6-pre-
repl0:PRIMARY> db.test.drop()
true
repl0:PRIMARY> db.createCollection('test', {capped: true, size: 1000})
{ "ok" : 1 }
repl0:PRIMARY> db.system.namespaces.findOne({name: 'test.test'}).options
{ "capped" : true, "size" : 4096 }
repl0:PRIMARY>
repl0:PRIMARY> db.test.drop()
true
repl0:PRIMARY> db.createCollection('test', {capped: true, size: 1024})
{ "ok" : 1 }
repl0:PRIMARY> db.system.namespaces.findOne({name: 'test.test'}).options
{ "capped" : true, "size" : 4096 }
repl0:PRIMARY>
repl0:PRIMARY> db.test.drop()
true
repl0:PRIMARY> db.createCollection('test', {capped: true, size: 8099})
{ "ok" : 1 }
repl0:PRIMARY> db.system.namespaces.findOne({name: 'test.test'}).options
{ "capped" : true, "size" : 8192 }
repl0:PRIMARY> db.adminCommand('buildInfo')
{
"version" : "2.5.6-pre-",
"gitVersion" : "9b93e7e43e279e2458d8e624750b561875611c18",
"OpenSSLVersion" : "OpenSSL 1.0.1f 6 Jan 2014",
"sysInfo" : "Linux behackett-dt 3.10.25-gentoo #1 SMP PREEMPT Mon Jan 13 12:21:14 PST 2014 x86_64 BOOST_LIB_VERSION=1_49",
"loaderFlags" : "-fPIC -pthread -Wl,-z,now -rdynamic",
"compilerFlags" : "-Wnon-virtual-dtor -Woverloaded-virtual -fPIC -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -Werror -pipe -O3 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -fno-builtin-memcmp",
"allocator" : "tcmalloc",
"versionArray" : [
2,
5,
6,
-100
],
"javascriptEngine" : "V8",
"bits" : 64,
"debug" : false,
"maxBsonObjectSize" : 16777216,
"ok" : 1
}
repl0:PRIMARY>