(path string)
| 354 | } |
| 355 | |
| 356 | func readFreelistPageIds(path string) ([]common.Pgid, error) { |
| 357 | m, _, err := guts_cli.GetActiveMetaPage(path) |
| 358 | if err != nil { |
| 359 | return nil, err |
| 360 | } |
| 361 | |
| 362 | p, _, err := guts_cli.ReadPage(path, uint64(m.Freelist())) |
| 363 | if err != nil { |
| 364 | return nil, err |
| 365 | } |
| 366 | |
| 367 | return p.FreelistPageIds(), nil |
| 368 | } |
no test coverage detected