Skip to content

Commit

Permalink
Correct javadoc for Env#setBackgroundThreads(int) (facebook#8576)
Browse files Browse the repository at this point in the history
Summary:
By default, the low priority pool is not the flush pool, so calling `Env#setBackgroundThreads` without providing a priority will not do what the caller expected.

Pull Request resolved: facebook#8576

Reviewed By: ajkr

Differential Revision: D29925154

Pulled By: mrambacher

fbshipit-source-id: cd7211fc374e7d9929a9b88ea0a5ba8134b76099
  • Loading branch information
Brendan MacDonell authored and facebook-github-bot committed Aug 6, 2021
1 parent d057e83 commit 8ca0817
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions java/src/main/java/org/rocksdb/Env.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ public static Env getDefault() {
}

/**
* <p>Sets the number of background worker threads of the flush pool
* for this environment.</p>
* <p>Sets the number of background worker threads of the low priority
* pool for this environment.</p>
* <p>Default number: 1</p>
*
* @param number the number of threads
Expand Down

0 comments on commit 8ca0817

Please sign in to comment.