binlijin created HBASE-6756:
-------------------------------

             Summary: Move some logic out of the lock range in 
HRegion.internalPut
                 Key: HBASE-6756
                 URL: https://issues.apache.org/jira/browse/HBASE-6756
             Project: HBase
          Issue Type: Improvement
            Reporter: binlijin
            Priority: Minor


Current in HRegion.internalPut
 {code}
    this.updatesLock.readLock().lock();
    checkFamilies(familyMap.keySet());
    checkTimestamps(familyMap, now);
    updateKVTimestamps(familyMap.values(), byteNow);
    .....
    this.updatesLock.readLock().unlock();
{code}
 
We can change it to 
 {code}
    checkFamilies(familyMap.keySet());
    checkTimestamps(familyMap, now);
    updateKVTimestamps(familyMap.values(), byteNow);
    this.updatesLock.readLock().lock();
    .....
    this.updatesLock.readLock().unlock();
{code}
 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to