mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-14 08:55:19 +00:00
use a simpler API call
This commit is contained in:
parent
639515c240
commit
28f56262bc
@ -142,7 +142,7 @@ public class IndexingMemoryBufferController extends AbstractLifecycleComponent<I
|
||||
// inactive?
|
||||
if (!status.inactive) {
|
||||
// mark it as inactive only if enough time has passed and there are no ongoing merges going on...
|
||||
if ((time - status.time) > inactiveTime.millis() && ((InternalIndexShard) indexShard).mergeScheduler().stats().current() == 0) {
|
||||
if ((time - status.time) > inactiveTime.millis() && indexShard.mergeStats().current() == 0) {
|
||||
try {
|
||||
((InternalIndexShard) indexShard).engine().updateIndexingBufferSize(Engine.INACTIVE_SHARD_INDEXING_BUFFER);
|
||||
} catch (EngineClosedException e) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user