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.
|
* Creates a clone of passed configuration.
|
||||||
* @param that Configuration to clone.
|
* @param that Configuration to clone.
|
||||||
* @return a Configuration created with the hbase-*.xml files plus
|
* @return a clone of passed configuration.
|
||||||
* the given configuration.
|
|
||||||
*/
|
*/
|
||||||
public static Configuration create(final Configuration that) {
|
public static Configuration create(final Configuration that) {
|
||||||
Configuration conf = create();
|
return new Configuration(that);
|
||||||
merge(conf, that);
|
|
||||||
return conf;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue