@@ -359,7 +359,7 @@ public class HRegion implements HeapSize, PropagatingConfigurationObserver, Regi
359
359
private final int rowLockWaitDuration ;
360
360
static final int DEFAULT_ROWLOCK_WAIT_DURATION = 30000 ;
361
361
362
- private Path regionDir ;
362
+ private Path regionWalDir ;
363
363
private FileSystem walFS ;
364
364
365
365
// set to true if the region is restored from snapshot for reading by ClientSideRegionScanner
@@ -2106,11 +2106,11 @@ FileSystem getWalFileSystem() throws IOException {
2106
2106
* @throws IOException if there is an error getting WALRootDir
2107
2107
*/
2108
2108
public Path getWALRegionDir () throws IOException {
2109
- if (regionDir == null ) {
2110
- regionDir = CommonFSUtils .getWALRegionDir (conf , getRegionInfo ().getTable (),
2109
+ if (regionWalDir == null ) {
2110
+ regionWalDir = CommonFSUtils .getWALRegionDir (conf , getRegionInfo ().getTable (),
2111
2111
getRegionInfo ().getEncodedName ());
2112
2112
}
2113
- return regionDir ;
2113
+ return regionWalDir ;
2114
2114
}
2115
2115
2116
2116
@ Override
@@ -7162,7 +7162,7 @@ public Map<byte[], List<Path>> bulkLoadHFiles(Collection<Pair<byte[], String>> f
7162
7162
boolean reqTmp = store .storeEngine .requireWritingToTmpDirFirst ();
7163
7163
if (bulkLoadListener != null ) {
7164
7164
finalPath = bulkLoadListener .prepareBulkLoad (familyName , path , copyFile ,
7165
- reqTmp ? null : regionDir .toString ());
7165
+ reqTmp ? null : fs . getRegionDir () .toString ());
7166
7166
}
7167
7167
Pair <Path , Path > pair = null ;
7168
7168
if (reqTmp ) {
0 commit comments