[SERVER-3557] dbpath can not end in a trailing / on windows Created: 09/Aug/11  Updated: 12/Jul/16  Resolved: 12/Sep/11

Status: Closed
Project: Core Server
Component/s: Stability
Affects Version/s: 1.9.1
Fix Version/s: 2.0.1, 2.1.0

Type: Bug Priority: Major - P3
Reporter: Andi McLean Assignee: Mathias Stearn
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows Server 2008 RC 2,


Operating System: Windows
Participants:

 Description   

When trying to set up a unique dbpath for mongo to run in. Mongo kept shutting down reporting that the dbpath does not exist, after checking the the directory exists and the permissions are set up correctly and countless other tries. I finally noticed after a good nights sleep that the directory had a trailing /, I removed it and it worked.

I think mongod should be able to cope with extra / on the end of the dbpath and removed if it's there.



 Comments   
Comment by auto [ 12/Sep/11 ]

Author:

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

Message: Strip trailing / of dbpath on windows SERVER-3557
Branch: v2.0
https://github.com/mongodb/mongo/commit/ade41dcba82cff6ea004d9252ecf90b6a6d0443f

Comment by auto [ 12/Sep/11 ]

Author:

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

Message: Strip trailing / of dbpath on windows SERVER-3557
Branch: master
https://github.com/mongodb/mongo/commit/bdad14498f2f952c09d285d82d05e8722e331c5c

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