Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ CHANGES:
* Add ability to set custom dialer in InstaceInfo.
* Router.Call: retry on VShardErrNameTransferIsInProgress error as in the `vshard` module (#75).

BUG FIXES:
* Router.bucketSearchBatched: do not flush out routeMap (#79).

## v2.0.5

The go-vshard team apologizes for changing the interfaces to experimental status.
Expand Down
2 changes: 1 addition & 1 deletion discovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ func (r *Router) bucketSearchBatched(ctx context.Context, bucketIDToFind uint64)
rs = rsFuture.rs
}

routeMap[bucketID].Store(rs)
routeMap[bucketID].Store(rsFuture.rs)
}

if bucketIDWasFound := rs != nil; !bucketIDWasFound {
Expand Down
Loading