HBASE-7719 HTableDescriptor.setDeferredLogFlush should be synchronized (Jean-Marc)
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1440581 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1641957baa
commit
58768ee0ed
|
@ -607,7 +607,7 @@ public class HTableDescriptor implements WritableComparable<HTableDescriptor> {
|
|||
*
|
||||
* @param isDeferredLogFlush
|
||||
*/
|
||||
public void setDeferredLogFlush(final boolean isDeferredLogFlush) {
|
||||
public synchronized void setDeferredLogFlush(final boolean isDeferredLogFlush) {
|
||||
setValue(DEFERRED_LOG_FLUSH_KEY, isDeferredLogFlush? TRUE: FALSE);
|
||||
this.deferredLog = isDeferredLogFlush;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue