gfe-relnote: Fix Http2PriorityWriteScheduler::UpdateStreamParent. Not used in prod. Not protected.
Current UpdateStreamParent() early returns if parent does not change. But exclusive bit should be considered as well.
PiperOrigin-RevId: 260496394
Change-Id: I9401a41140e12d19fbb36e9d5d13dcf58090be47
diff --git a/spdy/core/http2_priority_write_scheduler.h b/spdy/core/http2_priority_write_scheduler.h
index a35e076..f89dc8d 100644
--- a/spdy/core/http2_priority_write_scheduler.h
+++ b/spdy/core/http2_priority_write_scheduler.h
@@ -405,8 +405,10 @@
return;
}
- // If the new parent is already the stream's parent, we're done.
- if (stream_info->parent == new_parent) {
+ if (stream_info->parent == new_parent &&
+ (!exclusive || new_parent->children.size() == 1)) {
+ // If the new parent is already the stream's parent, and exclusivity (if
+ // specified) is already satisfied, we are done.
return;
}