We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4bfad26 commit 44d3ae1Copy full SHA for 44d3ae1
core/rawdb/database.go
@@ -177,7 +177,7 @@ func resolveChainFreezerDir(ancient string) string {
177
// - chain freezer exists in legacy location (root ancient folder)
178
freezer := filepath.Join(ancient, ChainFreezerName)
179
if !common.FileExist(freezer) {
180
- if !common.FileExist(ancient) {
+ if !common.FileExist(ancient) || !common.IsNonEmptyDir(ancient) {
181
// The entire ancient store is not initialized, still use the sub
182
// folder for initialization.
183
} else {
0 commit comments