mirror of
https://github.com/etcd-io/bbolt.git
synced 2025-05-31 11:42:30 +00:00
test: fix 'loadMetaPage' always read the first meta page
Signed-off-by: Benjamin Wang <wachao@vmware.com>
This commit is contained in:
parent
3fd1022a0a
commit
d19b7c8fba
@ -11,7 +11,7 @@ import (
|
||||
)
|
||||
|
||||
func loadMetaPage(t *testing.T, dbPath string, pageID uint64) *common.Meta {
|
||||
_, buf, err := guts_cli.ReadPage(dbPath, 0)
|
||||
_, buf, err := guts_cli.ReadPage(dbPath, pageID)
|
||||
require.NoError(t, err)
|
||||
return common.LoadPageMeta(buf)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user