[SERVER-2175] Userids from the shell in windows miss machineid and pid Created: 05/Dec/10 Updated: 12/Jul/16 Resolved: 06/Dec/10 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Shell |
| Affects Version/s: | 1.6.4, 1.6.5 |
| Fix Version/s: | 1.7.4 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Justin Dearing | Assignee: | Dwight Merriman |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Windows |
||
| Operating System: | ALL |
| Participants: |
| Description |
|
I've noticed this for a while, but I've been remiss about reporting it. From the shell in windows: > new ObjectId() On linux (using the static binaries from a tarball): ObjectId("4cfbefe976250bd3d7522fc4") |
| Comments |
| Comment by Justin Dearing [ 06/Dec/10 ] |
|
I can live with that for the duration. |
| Comment by Dwight Merriman [ 06/Dec/10 ] |
|
i think the shell inserts them what i would recommend is using the 1.7.x shell with the 1.6.5 mongod. that feels pretty safe to me. |
| Comment by Justin Dearing [ 06/Dec/10 ] |
|
I need it for when I do ad-hoc inserts from the shell. Does the shell append _id fields to objects like the drivers do, or does it allow the server to handle it? If the server handles it, I can certainly explicitly add _id tags in my shell insert() calls until 1.8 is released. |
| Comment by Dwight Merriman [ 06/Dec/10 ] |
|
btw the machine/pid isn't completely zero. it's just a lot more zeroes than it should be. e.g. time 4cfbd47d |
| Comment by Dwight Merriman [ 06/Dec/10 ] |
|
do you need it for shell or for mongod? |
| Comment by Justin Dearing [ 06/Dec/10 ] |
|
Any hance to backcommit this to 1.6.5 RC2. |
| Comment by auto [ 06/Dec/10 ] |
|
Author: {'login': 'dwight', 'name': 'dwight', 'email': 'dwight@10gen.com'}Message: refactor OID class a bit, cleanup, better id generation |
| Comment by auto [ 06/Dec/10 ] |
|
Author: {'login': 'dwight', 'name': 'dwight', 'email': 'dwight@10gen.com'}Message: better getrandomnumber on windows |