mirror of https://github.com/apache/lucene.git
added support for Berkeley DB 4.5.20
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@480800 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2b39422870
commit
63d2e582ad
|
@ -168,7 +168,7 @@ public class DbDirectory extends Directory {
|
||||||
try {
|
try {
|
||||||
try {
|
try {
|
||||||
DatabaseEntry key = new DatabaseEntry(new byte[0]);
|
DatabaseEntry key = new DatabaseEntry(new byte[0]);
|
||||||
DatabaseEntry data = new DatabaseEntry(null);
|
DatabaseEntry data = new DatabaseEntry((byte[]) null);
|
||||||
|
|
||||||
data.setPartial(true);
|
data.setPartial(true);
|
||||||
|
|
||||||
|
|
|
@ -65,7 +65,7 @@ public class File extends Object {
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
DatabaseEntry key = new DatabaseEntry(new byte[24]);
|
DatabaseEntry key = new DatabaseEntry(new byte[24]);
|
||||||
DatabaseEntry data = new DatabaseEntry(null);
|
DatabaseEntry data = new DatabaseEntry((byte[]) null);
|
||||||
Db blocks = directory.blocks;
|
Db blocks = directory.blocks;
|
||||||
DbTxn txn = directory.txn;
|
DbTxn txn = directory.txn;
|
||||||
int flags = directory.flags;
|
int flags = directory.flags;
|
||||||
|
@ -201,7 +201,7 @@ public class File extends Object {
|
||||||
int ulen = bytes.length + 8;
|
int ulen = bytes.length + 8;
|
||||||
byte[] cursorBytes = new byte[ulen];
|
byte[] cursorBytes = new byte[ulen];
|
||||||
DatabaseEntry cursorKey = new DatabaseEntry(cursorBytes);
|
DatabaseEntry cursorKey = new DatabaseEntry(cursorBytes);
|
||||||
DatabaseEntry cursorData = new DatabaseEntry(null);
|
DatabaseEntry cursorData = new DatabaseEntry((byte[]) null);
|
||||||
Db files = directory.files;
|
Db files = directory.files;
|
||||||
Db blocks = directory.blocks;
|
Db blocks = directory.blocks;
|
||||||
DbTxn txn = directory.txn;
|
DbTxn txn = directory.txn;
|
||||||
|
|
Loading…
Reference in New Issue