dbTalk Databases Forums  

DB_CREATE environment directory?

comp.databases.berkeley-db comp.databases.berkeley-db


Discuss DB_CREATE environment directory? in the comp.databases.berkeley-db forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
andrew.bell.ia@gmail.com
 
Posts: n/a

Default DB_CREATE environment directory? - 04-21-2006 , 09:32 AM






Hi,

Is the DB_CREATE flag, when passed to DbEnv.open(), supposed to create
the directory in which the database environment sits? I get an error.
What does the DB_CREATE flag mean with respect to the DbEnv.open()
call?

Example:

DbEnv env(0);

env.open("/foo/bar/baz", DB_INIT_MPOOL | DB_CREATE, 0);

This fails with a "No such file or directory error" even if "/foo/bar"
exists.

Thanks for any info,

-- Andrew Bell
andrew.bell.ia (AT) gmail (DOT) com


Reply With Quote
  #2  
Old   
Joseph Bruni
 
Posts: n/a

Default Re: DB_CREATE environment directory? - 04-22-2006 , 11:24 PM







andrew.bell.ia (AT) gmail (DOT) com wrote:
Quote:

Hi,

Is the DB_CREATE flag, when passed to DbEnv.open(), supposed to create
the directory in which the database environment sits? I get an error.
What does the DB_CREATE flag mean with respect to the DbEnv.open()
call?

Example:

DbEnv env(0);

env.open("/foo/bar/baz", DB_INIT_MPOOL | DB_CREATE, 0);

This fails with a "No such file or directory error" even if "/foo/bar"
exists.

Thanks for any info,

-- Andrew Bell
andrew.bell.ia (AT) gmail (DOT) com



--
You must first create the directory that is to contain the environment.

http://www.sleepycat.com/docs/ref/env/intro.html





Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.