[SERVER-6736] Inconsistent conversion from bytes to MB for oplog size Created: 08/Aug/12  Updated: 11/Jul/16  Resolved: 31/Aug/12

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 2.3.0

Type: Bug Priority: Minor - P4
Reporter: Samantha Ritter (Inactive) Assignee: Andrew Emil (Inactive)
Resolution: Done Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

When createOplog() picks a default size for the oplog, it uses 10^6 to convert from MB to bytes, but when it prints out the size in MB, it divides by (1024 * 1024).



 Comments   
Comment by Scott Hernandez (Inactive) [ 31/Aug/12 ]

Yes, the MiB/MB is the indications along with megabytes versus million
bytes thing

Comment by auto [ 31/Aug/12 ]

Author:

{u'date': u'2012-08-31T08:07:31-07:00', u'email': u'kristina@10gen.com', u'name': u'Kristina'}

Message: Merge pull request #296 from AndrewCEmil/SERVER-6736

SERVER-6736 Changed size calculation to represent MBs as 1024*1024
Branch: master
https://github.com/mongodb/mongo/commit/1f8725142aee6cd4598ff360f638055e44557bec

Comment by auto [ 31/Aug/12 ]

Author:

{u'date': u'2012-08-31T08:07:31-07:00', u'email': u'kristina@10gen.com', u'name': u'Kristina'}

Message: Merge pull request #296 from AndrewCEmil/SERVER-6736

SERVER-6736 Changed size calculation to represent MBs as 1024*1024
Branch: master
https://github.com/mongodb/mongo/commit/1f8725142aee6cd4598ff360f638055e44557bec

Comment by auto [ 31/Aug/12 ]

Author:

{u'date': u'2012-08-30T09:14:12-07:00', u'email': u'andrew.emil@10gen.com', u'name': u'AndrewCEmil'}

Message: SERVER-6736 Changed size calculation to represent MBs as 1024*1024 instead of 10^6 in createOplog()
Branch: master
https://github.com/mongodb/mongo/commit/1960f9a546ffa94a5645865eb01d407f402f0098

Comment by Tad Marshall [ 31/Aug/12 ]

If we are going to consistently use 1024 * 1024 for MB, this probably deserves a mention somewhere in the docs (if it isn't there already). I don't guess we want to use "MiB" (http://en.wikipedia.org/wiki/Mebibyte) for this ...

Generated at Thu Feb 08 03:12:33 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.