| Bug #39818 | maria_dump_log is linked with unittest code | ||
|---|---|---|---|
| Submitted: | 2 Oct 2008 17:31 | Modified: | 28 Jan 2009 10:58 |
| Reporter: | Marc ALFF | Email Updates: | |
| Status: | Not a Bug | Impact on me: | |
| Category: | MySQL Server: Maria storage engine | Severity: | S2 (Serious) |
| Version: | 6.0.8 | OS: | Any |
| Assigned to: | CPU Architecture: | Any | |
[2 Oct 2008 18:17]
Valeriy Kravchuk
Verified by code review.
[3 Oct 2008 4:37]
Oleksandr Byelkin
It is not a bug, it is just an ability to read logrecords created by unit test. Look into storage/maria/unittest/ma_loghandler_examples.c it is just record format definition for unittests. It can't have any influence on production code at all (until you do not use --unit-tetst switch).

Description: In 6.0.8, in storage/maria/Makefile.am: bin_PROGRAMS = maria_chk maria_pack maria_ftdump maria_read_log \ maria_dump_log --> maria_dump_log is a 'bin' program, aka an installed deliverable, like maria_chk maria_dump_log_SOURCES= ma_loghandler.c unittest/ma_loghandler_examples.c --> the code source contains unittest/ma_loghandler_examples.c, which is (according to it's name) unit test code. So, a deliverable depends on unit test code, which is a compile bug. How to repeat: Read the Makefile.am Suggested fix: Either remove the dependency, or re-organize the code.