ASF Bugzilla – Attachment 19693 Details for
Bug 33148
Corrupt index files
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
index.patch
index.patch (text/plain), 1.78 KB, created by
Natalia Shilenkova
on 2007-03-09 19:25:10 UTC
(
hide
)
Description:
index.patch
Filename:
MIME Type:
Creator:
Natalia Shilenkova
Created:
2007-03-09 19:25:10 UTC
Size:
1.78 KB
patch
obsolete
>Index: java/src/org/apache/xindice/core/indexer/IndexManager.java >=================================================================== >--- java/src/org/apache/xindice/core/indexer/IndexManager.java (revision 514474) >+++ java/src/org/apache/xindice/core/indexer/IndexManager.java (working copy) >@@ -255,6 +255,9 @@ > IndexerInfo info = new IndexerInfo(name, style, pattern, idx); > > if (!idx.exists()) { >+ idx.create(); >+ idx.open(); >+ > info.status = STATUS_BUSY; > synchronized (newIndexers) { > newIndexers.add(info); >@@ -334,27 +337,12 @@ > } > > Stopwatch sw = new Stopwatch("Populated Indexes", true); >- for (int i = 0; i < list.length; i++) { >- try { >- if (!list[i].indexer.exists()) { >- list[i].indexer.create(); >- } >- >- list[i].indexer.open(); >- } catch (Exception e) { >- if (log.isWarnEnabled()) { >- log.warn("Failed to create/open indexer " + list[i], e); >- } >- } >- } >- > RecordSet rs = collection.getFiler().getRecordSet(); > while (rs.hasMoreRecords()) { > // Read only key, we don't need filer-level value > Key key = rs.getNextKey(); > Object value = collection.getEntry(key); > if (value instanceof Document) { >- // Document doc = new DocumentImpl(rec.getValue().getData(), symbols, new NodeSource(collection, key)); > try { > new SAXHandler(key, (Document)value, ACTION_CREATE, list); > } catch (Exception e) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 33148
: 19693