dbTalk Databases Forums  

DB_REGISTER

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


Discuss DB_REGISTER in the comp.databases.berkeley-db forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Florian Weimer
 
Posts: n/a

Default DB_REGISTER - 12-27-2005 , 03:49 PM






Are there any known issues with the DB_REGISTER support in 4.4.16?

I'm using Berkeley DB in a multi-process configuration (one
long-running writer, multiple short-running readers). When I activate
DB_REGISTER, it returns DB_RUNRECOVERY far too often, even though I'm
pretty sure that the reader processes properly close their environment
handles, and all processes accessing the environment set DB_REGISTER,
and no process opens the environment more than once.

Apart from that, DB_REGISTER adds a measurable delay when opening the
environment. To some extent, this was expected, but I'm surprised
that the delay is quite noticable.

Reply With Quote
  #2  
Old   
bostic@sleepycat.com
 
Posts: n/a

Default Re: DB_REGISTER - 12-28-2005 , 08:04 AM






There's a known problem and we'll be releasing a patch release of 4.4
soon to address it.

In short, there's a bug where DB_RUNRECOVERY is being returned too
often.

Here's a patch to apply in the meantime.

*** env/env_register.c.orig 9 Dec 2005 18:05:26 -0000 1.19
--- env/env_register.c 11 Dec 2005 16:12:18 -0000 1.20
***************
*** 216,224 ****
if (nr != PID_LEN)
goto corrupt;

! if (FLD_ISSET(
! dbenv->verbose, DB_VERB_REGISTER) &&
PID_ISEMPTY(buf)) {
! __db_msg(dbenv, "%02u: EMPTY", lcnt);
continue;
}

--- 216,224 ----
if (nr != PID_LEN)
goto corrupt;

! if (PID_ISEMPTY(buf)) {
! if (FLD_ISSET(dbenv->verbose,
DB_VERB_REGISTER))
! __db_msg(dbenv, "%02u: EMPTY", lcnt);
continue;
}

Regards,
--keith

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Keith Bostic bostic (AT) sleepycat (DOT) com
Sleepycat Software Inc. keithbosticim (Yahoo IM)
118 Tower Rd. +1-781-259-3139
Lincoln, MA 01773 http://www.sleepycat.com


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

Default Re: DB_REGISTER - 01-01-2006 , 09:57 AM



Quote:
There's a known problem and we'll be releasing a patch release of 4.4
soon to address it.

In short, there's a bug where DB_RUNRECOVERY is being returned too
often.

Here's a patch to apply in the meantime.
Thanks, it seems that this patch fixes the problem I was experiencing.


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.