Skip to content

Commit 0cf9051

Browse files
committed
Add comments
Signed-off-by: guojialiang <guojialiang.2012@bytedance.com>
1 parent 46ca835 commit 0cf9051

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

server/src/main/java/org/opensearch/index/shard/IndexShard.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,8 @@ Runnable getGlobalCheckpointSyncer() {
399399
private final ReferencedSegmentsPublisher referencedSegmentsPublisher;
400400
private final Set<MergedSegmentCheckpoint> pendingMergedSegmentCheckpoints = Sets.newConcurrentHashSet();
401401
private final MergedSegmentTransferTracker mergedSegmentTransferTracker;
402+
403+
// Used to limit the number of concurrent translog tasks. When the semaphore is exhausted, serial recovery is used.
402404
private static final Semaphore translogConcurrentRecoverySemaphore = new Semaphore(1000);
403405

404406
@InternalApi

0 commit comments

Comments
 (0)