From 4bdf29612d37393fbd9dc115af2e0ebe87693f51 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Thu, 15 May 2025 01:11:21 +0200 Subject: [PATCH] core/rawdb/eradb: remove symlink check --- core/rawdb/eradb/eradb.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/core/rawdb/eradb/eradb.go b/core/rawdb/eradb/eradb.go index e17df77610..0f0976deb5 100644 --- a/core/rawdb/eradb/eradb.go +++ b/core/rawdb/eradb/eradb.go @@ -21,7 +21,6 @@ import ( "errors" "fmt" "io/fs" - "os" "path/filepath" "sync" @@ -65,17 +64,6 @@ const ( // New opens the store directory. func New(datadir string) (*Store, error) { - // Ensure the datadir is not a symbolic link if it exists. - if info, err := os.Lstat(datadir); !os.IsNotExist(err) { - if info == nil { - log.Warn("Could not Lstat the database", "path", datadir) - return nil, errors.New("lstat failed") - } - if info.Mode()&os.ModeSymlink != 0 { - log.Warn("Symbolic link erastore is not supported", "path", datadir) - return nil, errors.New("symbolic link datadir is not supported") - } - } db := &Store{ datadir: datadir, lru: lru.NewBasicLRU[uint64, *fileCacheEntry](openFileLimit),