code: func (m *Migrator) mdbConnect(dir string) error {
  	// Calculate and set the max size
  	size := maxLogSize32bit
  	if runtime.GOARCH == "amd64" {
  		size = maxLogSize64bit
  	}
  
  	// Open the connection
  	mdb, err := raftmdb.NewMDBStoreWithSize(dir, size)
  	if err != nil {
  		return err
  	}
  
  	// Return the new environment
  	m.mdbStore = mdb
  	return nil
  }
docs: // mdbConnect is used to open a handle on our LMDB raft backend. This
  // is enough to read all of the Consul data we need to migrate.