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 8fcc815504
commit 0ea1f81227
1 changed files with 1 additions and 1 deletions

View File

@ -294,7 +294,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);