HBASE-6380 bulkload should update the store.storeSize

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1361203 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2012-07-13 13:26:04 +00:00
parent 8a0b742b4d
commit fabf76eaee
1 changed files with 3 additions and 1 deletions

View File

@ -583,7 +583,9 @@ public class Store extends SchemaConfigured implements HeapSize {
this.family.getBloomFilterType(), this.dataBlockEncoder); this.family.getBloomFilterType(), this.dataBlockEncoder);
passSchemaMetricsTo(sf); passSchemaMetricsTo(sf);
sf.createReader(); StoreFile.Reader r = sf.createReader();
this.storeSize += r.length();
this.totalUncompressedBytes += r.getTotalUncompressedBytes();
LOG.info("Moved HFile " + srcPath + " into store directory " + LOG.info("Moved HFile " + srcPath + " into store directory " +
homedir + " - updating store file list."); homedir + " - updating store file list.");