[SERVER-2866] mongod startup output uses unix pathname on windows Created: 30/Mar/11  Updated: 29/Feb/12  Resolved: 14/Feb/12

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

Type: Bug Priority: Minor - P4
Reporter: Alvin Richards (Inactive) Assignee: Eric Milkie
Resolution: Duplicate Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by SERVER-3632 dbpath should use windows syntax on w... Closed
Related
related to DOCS-11 Default db path is /data/db/ on Windo... Closed
Operating System: ALL
Participants:

 Description   

Problem:

On Windows, the output on startup uses unix paths rather than windows path names, e.g.

Mon Mar 21 12:48:15 [initandlisten] MongoDB starting : pid=3732 port=27017 dbpath=/data/db/ 64-bit

https://groups.google.com/group/mongodb-user/browse_thread/thread/ca675a0bd7c37aae#

Reproduce:

  • mongod --dbpath c:\data\db


 Comments   
Comment by Eric Milkie [ 14/Feb/12 ]

duplicate of SERVER-3632

Comment by Eric Milkie [ 14/Feb/12 ]

The mongodb-user thread shows that the user was not specifying a dbpath. In that case, the path will be shown as Unix-style, and will default to whatever the current directory is when you run the server.

This is shown in both the "initandlisten" log line and in the ERROR message (if the data directory doesn't exist). This is the part that should be fixed.

Comment by Eric Milkie [ 14/Feb/12 ]

I can't reproduce the behavior as described in the Description. It shows Windows-style paths for me.

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