niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Databases » Berkeley DB
The combination of setExclusiveCreate and removeDatabase causes a problem?
Post new topic   Reply to topic Page 1 of 1 [3 Posts] View previous topic :: View next topic
Author Message
Mark Hayes
*nix forums beginner


Joined: 27 May 2005
Posts: 35

PostPosted: Mon Feb 28, 2005 5:51 pm    Post subject: Re: The combination of setExclusiveCreate and removeDatabase causes a problem? Reply with quote

Quote:
This entry has been moved to Sleepycat for resolution. The resolution will
be posted here.

We have determined that this is indeed a bug and we have a fix
available. The fix will be in the next release of JE. Please email
support@sleepycat.com if you would like a patch prior to the next release.

Mark
Back to top
Ron Cohen
*nix forums beginner


Joined: 28 Feb 2005
Posts: 1

PostPosted: Mon Feb 28, 2005 2:26 pm    Post subject: Re: The combination of setExclusiveCreate and removeDatabase causes a problem? Reply with quote

"Takuya Murata" <takusi@gmail.com> wrote in message
news:1109569178.325889.59500@o13g2000cwo.googlegroups.com...
Quote:
I might have found a bug of Berkeley DB JE 1.7.1.

This is a very quirky procedure, but

1. Attemp to open an existing database with setAllowCreate and
setExclusiveCreate both being true.
2. The attempt fails (since setExclusiveCreate is turn on.)
3. Open an existing database this time with setExclusiveCreate both
being false.
4. Close it
5. Call removeDatabase to remove this database.
6. And I got a LockExpire exception, which I don't think is a correct
behavior.

I used transactions throughtout the procedure. I carefully checked my
code and couldn't find any problem. After modifying the code so that
(1) happens only if there is no database with the name yet, I have the
problem gone.

(I am just posting this before I forget it)


This entry has been moved to Sleepycat for resolution. The resolution will
be posted here.


Ron
Back to top
Takuya Murata
*nix forums beginner


Joined: 28 Feb 2005
Posts: 1

PostPosted: Mon Feb 28, 2005 4:39 am    Post subject: The combination of setExclusiveCreate and removeDatabase causes a problem? Reply with quote

I might have found a bug of Berkeley DB JE 1.7.1.

This is a very quirky procedure, but

1. Attemp to open an existing database with setAllowCreate and
setExclusiveCreate both being true.
2. The attempt fails (since setExclusiveCreate is turn on.)
3. Open an existing database this time with setExclusiveCreate both
being false.
4. Close it
5. Call removeDatabase to remove this database.
6. And I got a LockExpire exception, which I don't think is a correct
behavior.

I used transactions throughtout the procedure. I carefully checked my
code and couldn't find any problem. After modifying the code so that
(1) happens only if there is no database with the name yet, I have the
problem gone.

(I am just posting this before I forget it)
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [3 Posts] View previous topic :: View next topic
The time now is Thu Jan 08, 2009 4:40 am | All times are GMT
navigation Forum index » Databases » Berkeley DB
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Unknown in header problem -SOLVED- Light Speed Postfix 0 Thu Jul 03, 2008 10:40 am
No new posts problem with sending mail nuxia Postfix 0 Mon Apr 21, 2008 3:58 am
No new posts Postfix 2.3.8 Virtual problem Blotto Postfix 0 Fri Apr 04, 2008 6:11 am
No new posts Postfix sending problem for local domain remote email monkey_magix Postfix 0 Mon Sep 10, 2007 10:17 am
No new posts bounce problem murkis Postfix 0 Sun Oct 08, 2006 3:45 pm

Buy WoW Gold | Bankruptcy | Latest Credit Cards | Credit Cards | Free Advertising
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.2037s ][ Queries: 20 (0.1340s) ][ GZIP on - Debug on ]