streamingfast / node-manager

Wrapping process to operate blockchain nodes.
https://dfuse.io
Apache License 2.0
7 stars 9 forks source link

Delete content of state folder instead of the folder itself #8

Closed fschoell closed 4 years ago

fschoell commented 4 years ago

It's common to have state and block folder mounted (for example when using ZFS). Using RemoveAll on the state folder will fail in that case as mounted ZFS filesystems cannot be deleted. This change removes the content of the state dir instead of the folder itself.

fschoell commented 4 years ago

Same goes for hasData() that won't work if the folders are mounted and already exist (but do not have any content).

maoueh commented 4 years ago

Closing as this has been moved to github.com/dfuse-io/dfuse-eosio repository, sent you instructions on Telegram about how to port the PR to there.