WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit ca51b0d

Browse files
fix
Signed-off-by: OneSizeFitsQuorum <[email protected]>
1 parent 6e8748e commit ca51b0d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/wal/allocation/AbstractNodeAllocationStrategy.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ protected AbstractNodeAllocationStrategy() {
5757

5858
protected IWALNode createWALNode(String identifier) {
5959
try {
60+
if (folderManager == null) {
61+
folderManager = new FolderManager(
62+
Arrays.asList(commonConfig.getWalDirs()), DirectoryStrategyType.SEQUENCE_STRATEGY);
63+
}
6064
return folderManager.getNextWithRetry(
6165
folder -> new WALNode(identifier, folder + File.separator + identifier));
6266
} catch (DiskSpaceInsufficientException e) {

0 commit comments

Comments
 (0)