220221222223224225226227228229
* @param files files that should be included in the compaction */ private void recalculateSize() { long sz = 0; for (StoreFile sf : this.filesToCompact) { Reader r = sf.getReader(); sz += r == null ? 0 : r.length(); } this.totalSize = sz; }
228229230231232233234235236237