mirror of
https://github.com/dolthub/dolt.git
synced 2026-02-18 10:09:21 -06:00
* Read replica update working set fixes Read replica pull updates the session working set after pulling a filtered set of branches from the tracking database. The original (buggy) implementation updates the working set to the branch specified at server-start time. The identity of that branch was fixed for the duration of the server, so dolt_checkout would (appear to) have no effect on the new branch's working set. What actually happened was more pernicious: the working set was updated to the value of the incorrect branch. The fix no longer statically sets the active branch for a read replica database. The active branch is pulled from the `*sql.Context`, so the correct working set will be updated. * [ga-format-pr] Run go/utils/repofmt/format_repo.sh and go/Godeps/update.sh * add test * todos * delete extraeneous line Co-authored-by: max-hoffman <max-hoffman@users.noreply.github.com>