Skip to content

Commit

Permalink
fix: hot-load tvlist_sort_threshold setting
Browse files Browse the repository at this point in the history
  • Loading branch information
shizy818 committed Jan 14, 2025
1 parent 736e596 commit 7fe1f85
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2069,11 +2069,9 @@ public synchronized void loadHotModifiedProps(TrimProperties properties)
// tvlist_sort_threshold
conf.setTVListSortThreshold(
Integer.parseInt(
Optional.ofNullable(
properties.getProperty(
"tvlist_sort_threshold", String.valueOf(conf.getTvListSortThreshold())))
.map(String::trim)
.orElse(String.valueOf(conf.getTvListSortThreshold()))));
properties.getProperty(
"tvlist_sort_threshold",
ConfigurationFileUtils.getConfigurationDefaultValue("tvlist_sort_threshold"))));
} catch (Exception e) {
if (e instanceof InterruptedException) {
Thread.currentThread().interrupt();
Expand Down

0 comments on commit 7fe1f85

Please sign in to comment.