()
| 248 | } |
| 249 | |
| 250 | func (this *BlocksFile) Sync() error { |
| 251 | this.mu.Lock() |
| 252 | defer this.mu.Unlock() |
| 253 | |
| 254 | err := this.checkStatus() |
| 255 | if err != nil { |
| 256 | return err |
| 257 | } |
| 258 | |
| 259 | return this.sync(false) |
| 260 | } |
| 261 | |
| 262 | func (this *BlocksFile) ForceSync() error { |
| 263 | this.mu.Lock() |
no test coverage detected