[SERVER-9085] db.replSetInfo() issue with converting OpTimes to seconds Created: 22/Mar/13 Updated: 11/Jul/16 Resolved: 28/Mar/13 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Shell |
| Affects Version/s: | 2.4.0 |
| Fix Version/s: | 2.4.2, 2.5.0 |
| Type: | Bug | Priority: | Critical - P2 |
| Reporter: | Luciano Issoe | Assignee: | Eric Milkie |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
ubuntu 12.04 LTS + mongodb 2.4 upgraded from 2.2.2 |
||
| Issue Links: |
|
||||||||||||||||
| Operating System: | ALL | ||||||||||||||||
| Steps To Reproduce: | upgrade mongodb using apt-get and 10gen repositories. use db.printReplicationInfo()... |
||||||||||||||||
| Participants: | |||||||||||||||||
| Description |
|
When runnign db.printReplicationInfo() from the mongo shel, it returns unreal dates: MongoDB shell version: 2.4.0 When connecting from a 2.2 client shell, it returns the correct dates: |
| Comments |
| Comment by auto [ 28/Mar/13 ] |
|
Author: {u'date': u'2013-03-25T14:22:49Z', u'name': u'Eric Milkie', u'email': u'milkie@10gen.com'}Message: |
| Comment by auto [ 25/Mar/13 ] |
|
Author: {u'date': u'2013-03-25T14:22:49Z', u'name': u'Eric Milkie', u'email': u'milkie@10gen.com'}Message: |
| Comment by Eric Milkie [ 25/Mar/13 ] |
|
DB.tsToSeconds() calculation is incorrect; it should no longer be dividing by 1000, since the format of the t field is already in seconds. |