HBASE-14436 HTableDescriptor#addCoprocessor will always make RegionCoprocessorHost create new Configuration

This commit is contained in:
stack 2015-10-06 14:00:20 -07:00
parent 5e2db42d68
commit ab33a65a1a
1 changed files with 1 additions and 1 deletions

View File

@ -285,7 +285,7 @@ public class RegionCoprocessorHost
// ignore
}
Configuration ourConf;
if (cfgSpec != null) {
if (cfgSpec != null && !cfgSpec.trim().equals("|")) {
cfgSpec = cfgSpec.substring(cfgSpec.indexOf('|') + 1);
// do an explicit deep copy of the passed configuration
ourConf = new Configuration(false);