Commit f00e129
committed
MDEV-37969 sphinx_snippets() UDF fails to resolve hostname
The SphinxSE sphinx_snippets had a erronous test condition
on the getaddrinfo return value. With this inverted there
was always an error.
The entire CSphUrl::Connect also failed to handle IPv6
addresses. As getaddrinfo can return multiple addresses
it makes sense to try each of these.
Performing freeaddrinfo(hp) on an error condition in getaddrinfo
caused a SEGV.
Removed some boilerplate #ifdef around very old MySQL versions
and unused defines.
This sphinx tests reuse the parsing of configuration files
from the test My::Config packaging, which needed to change
as sphinx supports multiple listen directives needed for
the test. Without this the last specified listen only was
recorded in the configuration file.
charset_type removed the indexer reported 2.2.11:
WARNING: key 'charset_type' was permanently removed from Sphinx configuration.
Thanks to bug report by Misagh Laghaei who kindly refered me
to manticoresoftware/manticoresearch#3804
by Sergey Nikolaev <[email protected]> that showed
showed the getaddrinfo handling errors, and other odd handling
of connection code.1 parent cedb0ed commit f00e129
File tree
6 files changed
+95
-100
lines changed- mysql-test/lib/My
- storage/sphinx
- mysql-test/sphinx
6 files changed
+95
-100
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
| |||
24 | 23 | | |
25 | 24 | | |
26 | 25 | | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
7 | 10 | | |
8 | 11 | | |
9 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | 29 | | |
31 | 30 | | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | 31 | | |
39 | 32 | | |
40 | 33 | | |
41 | 34 | | |
42 | | - | |
43 | 35 | | |
44 | | - | |
45 | 36 | | |
46 | 37 | | |
47 | 38 | | |
| |||
90 | 81 | | |
91 | 82 | | |
92 | 83 | | |
93 | | - | |
94 | 84 | | |
95 | 85 | | |
96 | 86 | | |
| |||
360 | 350 | | |
361 | 351 | | |
362 | 352 | | |
363 | | - | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | | - | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | | - | |
| 353 | + | |
373 | 354 | | |
374 | 355 | | |
375 | 356 | | |
376 | | - | |
377 | | - | |
378 | | - | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
379 | 360 | | |
380 | | - | |
381 | | - | |
382 | | - | |
| 361 | + | |
383 | 362 | | |
384 | | - | |
385 | | - | |
386 | | - | |
387 | | - | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
388 | 369 | | |
389 | | - | |
390 | | - | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
391 | 374 | | |
392 | | - | |
393 | | - | |
394 | | - | |
395 | | - | |
396 | | - | |
397 | | - | |
398 | | - | |
399 | | - | |
400 | | - | |
401 | | - | |
402 | | - | |
403 | | - | |
404 | | - | |
405 | | - | |
406 | | - | |
407 | | - | |
408 | | - | |
409 | | - | |
410 | | - | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
411 | 378 | | |
412 | | - | |
413 | | - | |
414 | | - | |
415 | | - | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
416 | 384 | | |
417 | | - | |
418 | | - | |
419 | | - | |
| 385 | + | |
| 386 | + | |
420 | 387 | | |
421 | | - | |
422 | | - | |
423 | | - | |
424 | | - | |
425 | | - | |
426 | | - | |
427 | | - | |
| 388 | + | |
| 389 | + | |
428 | 390 | | |
| 391 | + | |
429 | 392 | | |
430 | 393 | | |
431 | 394 | | |
432 | | - | |
433 | | - | |
434 | | - | |
435 | | - | |
| 395 | + | |
436 | 396 | | |
437 | 397 | | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
438 | 404 | | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
439 | 415 | | |
440 | 416 | | |
441 | 417 | | |
| |||
445 | 421 | | |
446 | 422 | | |
447 | 423 | | |
448 | | - | |
449 | 424 | | |
450 | | - | |
451 | | - | |
452 | | - | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
458 | 429 | | |
459 | | - | |
460 | | - | |
461 | | - | |
462 | | - | |
463 | | - | |
464 | | - | |
465 | | - | |
466 | | - | |
467 | | - | |
468 | | - | |
469 | | - | |
| 430 | + | |
| 431 | + | |
470 | 432 | | |
471 | | - | |
472 | | - | |
473 | | - | |
474 | | - | |
475 | | - | |
476 | | - | |
477 | | - | |
| 433 | + | |
| 434 | + | |
478 | 435 | | |
479 | 436 | | |
480 | 437 | | |
| |||
484 | 441 | | |
485 | 442 | | |
486 | 443 | | |
487 | | - | |
488 | | - | |
| 444 | + | |
| 445 | + | |
489 | 446 | | |
490 | 447 | | |
491 | 448 | | |
| |||
0 commit comments