Commit f9f5716
committed
ra_serf: Guard against SERF_VERSION_AT_LEAST(unreleased version) logic.
Before this change, our code contained several blocks of code conditional
on SERF_VERSION_AT_LEAST(1, 4, 0). Since Serf 1.4.0 is unreleased, this
code relies on development snapshots rather than a stable API.
Essentially, that's a ticking timebomb. The code encodes assumptions
about a development version of Serf but will automatically activate if
a user builds against an officially released Serf 1.4.0+.
More specifically:
- The code may not compile, depending on the final API state in Serf 1.4.0+.
- Even if it compiles, assumptions about Serf's behavior may no longer hold.
- Even if the assumptions hold, these code paths may still not work as intended,
because they are effectively hidden from our standard release testing and
buildbots.
To fix this issue, place such code under an additional guard (#ifdef
SVN__SERF_EXPERIMENTAL) that is never defined in production builds.
See [1] for additional details.
* subversion/libsvn_ra_serf/serf.c
(load_config): Guard code with #ifdef SVN__SERF_EXPERIMENTAL.
* subversion/libsvn_ra_serf/update.c
(get_best_connection): Guard code with #ifdef SVN__SERF_EXPERIMENTAL.
* subversion/libsvn_ra_serf/util.c
(conn_negotiate_protocol, conn_setup, svn_ra_serf__default_readline):
Guard code with #ifdef SVN__SERF_EXPERIMENTAL.
[1]: https://lists.apache.org/thread/7dpmb63wc1phqvgwvp9hnyrzfqpd2mz5
git-svn-id: https://svn.apache.org/repos/asf/subversion/trunk@1930808 13f79535-47bb-0310-9956-ffa450edef681 parent c2c3f37 commit f9f5716
3 files changed
+14
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
| 168 | + | |
168 | 169 | | |
169 | 170 | | |
170 | 171 | | |
| 172 | + | |
171 | 173 | | |
172 | 174 | | |
173 | 175 | | |
| |||
252 | 254 | | |
253 | 255 | | |
254 | 256 | | |
| 257 | + | |
255 | 258 | | |
256 | 259 | | |
257 | 260 | | |
| |||
261 | 264 | | |
262 | 265 | | |
263 | 266 | | |
| 267 | + | |
264 | 268 | | |
265 | 269 | | |
266 | 270 | | |
| |||
319 | 323 | | |
320 | 324 | | |
321 | 325 | | |
| 326 | + | |
322 | 327 | | |
323 | 328 | | |
324 | 329 | | |
| |||
328 | 333 | | |
329 | 334 | | |
330 | 335 | | |
| 336 | + | |
331 | 337 | | |
332 | 338 | | |
333 | 339 | | |
| 340 | + | |
334 | 341 | | |
335 | 342 | | |
336 | 343 | | |
| |||
348 | 355 | | |
349 | 356 | | |
350 | 357 | | |
| 358 | + | |
351 | 359 | | |
352 | 360 | | |
353 | 361 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
616 | 616 | | |
617 | 617 | | |
618 | 618 | | |
619 | | - | |
| 619 | + | |
620 | 620 | | |
621 | 621 | | |
622 | 622 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
481 | 481 | | |
482 | 482 | | |
483 | 483 | | |
| 484 | + | |
484 | 485 | | |
485 | 486 | | |
486 | 487 | | |
| |||
512 | 513 | | |
513 | 514 | | |
514 | 515 | | |
| 516 | + | |
515 | 517 | | |
516 | 518 | | |
517 | 519 | | |
| |||
558 | 560 | | |
559 | 561 | | |
560 | 562 | | |
| 563 | + | |
561 | 564 | | |
562 | 565 | | |
563 | 566 | | |
| |||
567 | 570 | | |
568 | 571 | | |
569 | 572 | | |
| 573 | + | |
570 | 574 | | |
571 | 575 | | |
572 | 576 | | |
| |||
2273 | 2277 | | |
2274 | 2278 | | |
2275 | 2279 | | |
2276 | | - | |
| 2280 | + | |
2277 | 2281 | | |
2278 | 2282 | | |
2279 | 2283 | | |
| |||
0 commit comments