(entry fs.DirEntry)
| 184 | } |
| 185 | |
| 186 | func ownsWALBlock(entry fs.DirEntry) bool { |
| 187 | // all vParquet wal blocks are folders |
| 188 | if !entry.IsDir() { |
| 189 | return false |
| 190 | } |
| 191 | |
| 192 | _, _, version, err := parseName(entry.Name()) |
| 193 | if err != nil { |
| 194 | return false |
| 195 | } |
| 196 | |
| 197 | return version == VersionString |
| 198 | } |
| 199 | |
| 200 | type walBlockFlush struct { |
| 201 | path string |
no test coverage detected