HBASE-5022 Optimize HBaseConfiguration#create (N Keywal)
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1214366 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
cd0c4cffa9
commit
9ed28b472c
|
@ -114,13 +114,10 @@ public class HBaseConfiguration extends Configuration {
|
|||
/**
|
||||
* Creates a clone of passed configuration.
|
||||
* @param that Configuration to clone.
|
||||
* @return a Configuration created with the hbase-*.xml files plus
|
||||
* the given configuration.
|
||||
* @return a clone of passed configuration.
|
||||
*/
|
||||
public static Configuration create(final Configuration that) {
|
||||
Configuration conf = create();
|
||||
merge(conf, that);
|
||||
return conf;
|
||||
return new Configuration(that);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue