- [Issue 2469] index-entry-limit doesn't work, at least for on-line import:
provide new inc public method to increment entryLimitExceededCount from
outside the Index and make index merge thread keep the count up to date.
this has been verified with online and offline imports as well as with verify-
index tool to yield the same results.
| | |
| | | } |
| | | |
| | | /** |
| | | * Increment the count of the number of keys that have exceeded the entry |
| | | * limit since this object was created. |
| | | */ |
| | | public void incEntryLimitExceededCount() |
| | | { |
| | | entryLimitExceededCount++; |
| | | } |
| | | |
| | | /** |
| | | * Update the index for a new entry. |
| | | * |
| | | * @param txn A database transaction, or null if none is required. |
| | |
| | | |
| | | if (merged.size() > entryLimit) |
| | | { |
| | | index.incEntryLimitExceededCount(); |
| | | byte[] undefinedSizeBytes = |
| | | JebFormat.entryIDUndefinedSizeToDatabase(merged.size()); |
| | | dbData.setData(undefinedSizeBytes); |