mirror of
https://github.com/talent-plan/tinykv.git
synced 2025-03-15 20:31:03 +08:00
parent
d6bc38004a
commit
07d420b75e
@ -62,7 +62,7 @@ func BootstrapStore(engines *engine_util.Engines, clusterID, storeID uint64) err
|
||||
return nil
|
||||
}
|
||||
|
||||
func PrepareBootstrap(engins *engine_util.Engines, storeID, regionID, peerID uint64) (*metapb.Region, error) {
|
||||
func PrepareBootstrap(engines *engine_util.Engines, storeID, regionID, peerID uint64) (*metapb.Region, error) {
|
||||
region := &metapb.Region{
|
||||
Id: regionID,
|
||||
StartKey: []byte{},
|
||||
@ -78,7 +78,7 @@ func PrepareBootstrap(engins *engine_util.Engines, storeID, regionID, peerID uin
|
||||
},
|
||||
},
|
||||
}
|
||||
err := PrepareBootstrapCluster(engins, region)
|
||||
err := PrepareBootstrapCluster(engines, region)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user