|
|
|
|
|
|
| Author |
Message |
Mark Hayes *nix forums beginner
Joined: 27 May 2005
Posts: 35
|
Posted: Mon Feb 28, 2005 5:51 pm Post subject:
Re: The combination of setExclusiveCreate and removeDatabase causes a problem?
|
|
|
| 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
|
Posted: Mon Feb 28, 2005 2:26 pm Post subject:
Re: The combination of setExclusiveCreate and removeDatabase causes a problem?
|
|
|
"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
|
Posted: Mon Feb 28, 2005 4:39 am Post subject:
The combination of setExclusiveCreate and removeDatabase causes a problem?
|
|
|
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 |
|
 |
|
|
The time now is Thu Jan 08, 2009 4:40 am | All times are GMT
|
|
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
|
|