dbTalk Databases Forums  

Some thing wrong with using DB_RECOVER

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


Discuss Some thing wrong with using DB_RECOVER in the comp.databases.berkeley-db forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
William.P
 
Posts: n/a

Default Some thing wrong with using DB_RECOVER - 06-24-2006 , 03:35 AM






my code:
dbenv = bsddb.db.DBEnv()
flags =
bsddb.db.DB_CREATE|bsddb.db.DB_INIT_CDB|bsddb.db.D B_INIT_MPOOL|bsddb.db.DB_THREAD|bsddb.db.DB_RECOVE R
dbenv.open(self.__dbpath,flags)


error:
bsddb._db.DBInvalidArgError: (22, 'Invalid argument -- illegal flag
specified to DB_ENV->open')

if I remove flag DB_RECOVER, no error , but I must use it to recover
while db exit abnormally, how could I? anybody know it?


Reply With Quote
  #2  
Old   
Florian Weimer
 
Posts: n/a

Default Re: Some thing wrong with using DB_RECOVER - 06-24-2006 , 04:01 AM






* William P.:

Quote:
if I remove flag DB_RECOVER, no error , but I must use it to recover
while db exit abnormally, how could I? anybody know it?
I don't think CDB supports DB_RECOVER. You need TDS (DB_INIT_TXN and
all its dependencies) for that.


Reply With Quote
  #3  
Old   
William.P
 
Posts: n/a

Default Re: Some thing wrong with using DB_RECOVER - 06-24-2006 , 05:43 AM



Florian Weimer wrote:
Quote:
* William P.:

if I remove flag DB_RECOVER, no error , but I must use it to recover
while db exit abnormally, how could I? anybody know it?

I don't think CDB supports DB_RECOVER. You need TDS (DB_INIT_TXN and
all its dependencies) for that.
yeah, you're right, I change CDB to TXN, all ok,
3x



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.