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:
Zhihong Yu 2013-01-30 18:46:57 +00:00
parent 1641957baa
commit 58768ee0ed
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}