mirror of
https://github.com/ceph/ceph
synced 2024-12-21 02:42:48 +00:00
Pipe: Drop connect_seq increase line
Revert commit 0fc47e267b
.
When accepting and "connect.connect_seq == existing->connect_seq",
existing->state maybe STATE_OPEN, STATE_STANDBY or STANDY_CONNECTING.
This commit only fix partial problem and want to assert
"(existing->state == STATE_CONNECTING)".
So later we added codes to catch
"(existing->state == STATE_OPEN || existing->state == STATE_STANDBY)"
before asserting.
Backport: dumpling, firefly, giant
Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
This commit is contained in:
parent
ff2d497f86
commit
67225cb3ee
@ -1694,10 +1694,8 @@ void Pipe::writer()
|
||||
<< " policy.server=" << policy.server << dendl;
|
||||
|
||||
// standby?
|
||||
if (is_queued() && state == STATE_STANDBY && !policy.server) {
|
||||
connect_seq++;
|
||||
if (is_queued() && state == STATE_STANDBY && !policy.server)
|
||||
state = STATE_CONNECTING;
|
||||
}
|
||||
|
||||
// connect?
|
||||
if (state == STATE_CONNECTING) {
|
||||
|
Loading…
Reference in New Issue
Block a user