dbTalk Databases Forums  

How do I force a run recovery error?

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


Discuss How do I force a run recovery error? in the comp.databases.berkeley-db forum.



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

Default How do I force a run recovery error? - 01-28-2006 , 10:54 PM






I'm extending an application to do recovery w/o human intervention.
Think of it as a "soft restart". I've written the code and I want to
test it. What kind of non catastrophic action can I do to the Berkeley
DB environment that would cause it to tell my app to run recovery? I'm
using BerkeleyDB 4.4.20 on Linux.


Reply With Quote
  #2  
Old   
Michael Cahill
 
Posts: n/a

Default Re: How do I force a run recovery error? - 01-28-2006 , 11:55 PM






This should do what you want:

dbenv->set_flags(dbenv, DB_PANIC_ENVIRONMENT, 1);

Regards,
Michael.


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.