HBASE-10087 Store should be locked during a memstore snapshot

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1560018 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
nkeywal 2014-01-21 14:08:32 +00:00
parent ca56b9ca7c
commit a0bb401537
1 changed files with 4 additions and 0 deletions

View File

@ -1921,6 +1921,10 @@ public class HStore implements Store {
this.cacheFlushSeqNum = cacheFlushSeqNum; this.cacheFlushSeqNum = cacheFlushSeqNum;
} }
/**
* This is not thread safe. The caller should have a lock on the region or the store.
* If necessary, the lock can be added with the patch provided in HBASE-10087
*/
@Override @Override
public void prepare() { public void prepare() {
memstore.snapshot(); memstore.snapshot();