[SERVER-3632] dbpath should use windows syntax on windows Created: 17/Aug/11  Updated: 11/Jul/16  Resolved: 15/Feb/12

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

Type: Improvement Priority: Major - P3
Reporter: Mathias Stearn Assignee: Eric Milkie
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-2866 mongod startup output uses unix pathn... Closed
Related
related to SERVER-3623 [journal] User Assertion: 13646:stat(... Closed
is related to DOCS-11 Default db path is /data/db/ on Windo... Closed
Participants:

 Description   

Currently can't pass directly to some OS functions.

Alternatively we could make it a boost::filesystem::path, but that may be more annoying



 Comments   
Comment by auto [ 14/Feb/12 ]

Author:

{u'login': u'milkie', u'name': u'Eric Milkie', u'email': u'milkie@10gen.com'}

Message: SERVER-3632 use Windows syntax for default dbpath on Windows

Note that we still use the current disk for \data\db (not necessarily C
Branch: master
https://github.com/mongodb/mongo/commit/e2e55afb1bc9f32d87d32a0426593b20ce0ea833

Comment by Eric Milkie [ 14/Feb/12 ]

I reopened this; I'll make it print the actual Windows path it's using, but I won't change the behavior (where it uses the current disk if you don't specify a --dbpath)

Comment by Eric Milkie [ 09/Feb/12 ]

After some discussion, decided not to do anything further here.
If you don't specify --dbpath, you get the default, which will be the \data\db directory on the current disk. Changing this to be a default of something like c:\data\db would break existing behavior.
If you do specify --dbpath, specify it using Windows syntax on Windows and everything will work fine.

Comment by auto [ 17/Aug/11 ]

Author:

{u'login': u'RedBeard0531', u'name': u'Mathias Stearn', u'email': u'mathias@10gen.com'}

Message: localized fix for SERVER-3623. Broader fix is SERVER-3632
Branch: master
https://github.com/mongodb/mongo/commit/e9759a516c6ecd82a991f2150cbc7767f0eccb0e

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