HBASE-23590 : Update maxCompactedStoreFileRef (ADDENDUM)
This commit is contained in:
parent
e0c419d76d
commit
19b35d2b19
|
@ -2878,12 +2878,15 @@ public class HStore implements Store {
|
||||||
*/
|
*/
|
||||||
public int getMaxCompactedStoreFileRefCount() {
|
public int getMaxCompactedStoreFileRefCount() {
|
||||||
int maxCompactedStoreFileRefCount = 0;
|
int maxCompactedStoreFileRefCount = 0;
|
||||||
for (StoreFile store : storeEngine.getStoreFileManager().getCompactedfiles()) {
|
Collection<StoreFile> compactedFiles = storeEngine.getStoreFileManager().getCompactedfiles();
|
||||||
if (store.isHFile()) {
|
if (compactedFiles != null) {
|
||||||
StoreFile.Reader storeReader = store.getReader();
|
for (StoreFile store : compactedFiles) {
|
||||||
if (storeReader != null) {
|
if (store.isHFile()) {
|
||||||
maxCompactedStoreFileRefCount = Math.max(maxCompactedStoreFileRefCount,
|
StoreFile.Reader storeReader = store.getReader();
|
||||||
storeReader.getRefCount());
|
if (storeReader != null) {
|
||||||
|
maxCompactedStoreFileRefCount = Math.max(maxCompactedStoreFileRefCount,
|
||||||
|
storeReader.getRefCount());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue