diff options
author | 2018-08-15 13:43:15 -0700 | |
---|---|---|
committer | 2018-08-15 13:43:15 -0700 | |
commit | d08ea3025b653d63652b65d52fa58517bcfa94e5 (patch) | |
tree | 7637ccb1e77e7b7448eca42e6cce3df1b903452a /src/core/ext/filters/client_channel/lb_policy | |
parent | da786c2dcf96b3ac894db3c914eb80792a223b83 (diff) |
Fixed ordering in adding pending picks to PF
Diffstat (limited to 'src/core/ext/filters/client_channel/lb_policy')
-rw-r--r-- | src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc b/src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc index 2b6a9ba8c5..bc51903ef5 100644 --- a/src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc +++ b/src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc @@ -279,11 +279,11 @@ bool PickFirst::PickLocked(PickState* pick, grpc_error** error) { "No pick result available but synchronous result required."); return true; } + pick->next = pending_picks_; + pending_picks_ = pick; if (!started_picking_) { StartPickingLocked(); } - pick->next = pending_picks_; - pending_picks_ = pick; return false; } |