ctubbsii commented on a change in pull request #493: Make RFileScanner use 
table props throughout
URL: https://github.com/apache/accumulo/pull/493#discussion_r190018713
 
 

 ##########
 File path: 
core/src/main/java/org/apache/accumulo/core/client/rfile/RFileScanner.java
 ##########
 @@ -179,13 +181,16 @@ public void indexWeightChanged() {}
     }
 
     this.opts = opts;
+    if (null != opts.tableConfig && opts.tableConfig.size() > 0) {
+      ConfigurationCopy tableCC = new 
ConfigurationCopy(DefaultConfiguration.getInstance());
+      opts.tableConfig.forEach(tableCC::set);
+      this.tableConf = tableCC;
+    } else {
+      this.tableConf = DefaultConfiguration.getInstance();
+    }
 
     if (opts.indexCacheSize > 0 || opts.dataCacheSize > 0) {
-      ConfigurationCopy cc = new 
ConfigurationCopy(DefaultConfiguration.getInstance());
-      if (null != opts.tableConfig) {
-        opts.tableConfig.forEach(cc::set);
-      }
-
+      ConfigurationCopy cc = new ConfigurationCopy(this.tableConf);
 
 Review comment:
   Why can't we use `this.tableConf` directly here, since a copy has been made 
above?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to