WalFile returns the full path to the write-ahead log file
()
| 1027 | |
| 1028 | // WalFile returns the full path to the write-ahead log file |
| 1029 | func (cfg *ConsensusConfig) WalFile() string { |
| 1030 | if cfg.walFile != "" { |
| 1031 | return cfg.walFile |
| 1032 | } |
| 1033 | return rootify(cfg.WalPath, cfg.RootDir) |
| 1034 | } |
| 1035 | |
| 1036 | // SetWalFile sets the path to the write-ahead log file |
| 1037 | func (cfg *ConsensusConfig) SetWalFile(walFile string) { |