mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 20:56:42 +00:00
core: check ancient empty
This commit is contained in:
parent
4bfad2651d
commit
44d3ae1e2d
1 changed files with 1 additions and 1 deletions
|
|
@ -177,7 +177,7 @@ func resolveChainFreezerDir(ancient string) string {
|
|||
// - chain freezer exists in legacy location (root ancient folder)
|
||||
freezer := filepath.Join(ancient, ChainFreezerName)
|
||||
if !common.FileExist(freezer) {
|
||||
if !common.FileExist(ancient) {
|
||||
if !common.FileExist(ancient) || !common.IsNonEmptyDir(ancient) {
|
||||
// The entire ancient store is not initialized, still use the sub
|
||||
// folder for initialization.
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue