mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-15 23:38:19 +00:00
create idx in tmpdir
This commit is contained in:
parent
6aa0a5f08e
commit
8a0d41693f
@ -623,7 +623,8 @@ func (rs *RecSplit) Build() error {
|
||||
_ = rs.indexW.Flush()
|
||||
_ = rs.indexF.Sync()
|
||||
_ = rs.indexF.Close()
|
||||
_ = os.MkdirAll(rs.indexFile, 0744)
|
||||
dir, _ := filepath.Split(rs.indexFile)
|
||||
_ = os.MkdirAll(dir, 0744)
|
||||
if err := os.Rename(tmpIdxFilePath, rs.indexFile); err != nil {
|
||||
return err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user