Skip to content

Commit

Permalink
update RestrictedApi annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
Ray Mattingly committed Dec 3, 2023
1 parent 08991b2 commit eb51c02
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ public long getBatchesProcessed() {
return batchesProcessed;
}

@RestrictedApi(explanation = "Should only be called in tests", link = "",
allowedOnPath = ".*/src/test/.*")
@RestrictedApi(explanation = "Should only be called internally or in tests", link = "",
allowedOnPath = "(.*(/src/test/.*|ReopenTableRegionsProcedure).java)")
protected int progressBatchSize() {
int previousBatchSize = reopenBatchSize;
reopenBatchSize = Math.min(reopenBatchSizeMax, 2 * reopenBatchSize);
Expand Down

0 comments on commit eb51c02

Please sign in to comment.