Merge lp://qastaging/~sergei.glushchenko/percona-xtrabackup/xb-tools into lp://qastaging/percona-xtrabackup/2.1
Status: | Work in progress |
---|---|
Proposed branch: | lp://qastaging/~sergei.glushchenko/percona-xtrabackup/xb-tools |
Merge into: | lp://qastaging/percona-xtrabackup/2.1 |
Diff against target: |
7189 lines (+6798/-18) (has conflicts) 19 files modified
patches/innodb51.patch (+342/-7) src/Makefile (+14/-5) src/api_log.c (+1493/-0) src/api_log.h (+213/-0) src/api_page.c (+3522/-0) src/api_page.h (+70/-0) src/fil_cur.c (+3/-1) src/fil_cur.h (+1/-0) src/innodb_int.c (+75/-0) src/innodb_int.h (+322/-2) src/percona-pprint.c (+146/-0) src/percona-redo.c (+216/-0) src/xtrabackup.c (+18/-0) test/inc/allpagetypes.sql (+147/-0) test/inc/allrectypes.sql (+154/-0) test/run.sh (+9/-1) test/t/percona-pprint.sh (+27/-0) test/t/percona-redo.sh (+20/-0) utils/build.sh (+6/-2) Text conflict in src/innodb_int.h |
To merge this branch: | bzr merge lp://qastaging/~sergei.glushchenko/percona-xtrabackup/xb-tools |
Related bugs: | |
Related blueprints: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Laurynas Biveinis (community) | Needs Fixing | ||
Alexey Kopytov | Pending | ||
Review via email:
|
This proposal supersedes a proposal from 2012-06-21.
Description of the change
Log and printers are build inside XtraBackup tree. Following are how it been done:
innodb51-
innodb51-
api0internal.h - some innodb internals exposed
api0log.c - log printer code
api0page.c - page printer code
innodb_init.c - innodb initialization code needed for standalone utils
percona-pprint.cc - standalone page printer main function
percona-redo.cc - standalone log printer main function
to build standalone tools utils/build.sh utils
utils are also linked to xtrabackup_plugin
Unmerged revisions
- 417. By Sergei Glushchenko
-
made extra initialization for innodb51 only
- 416. By Sergei Glushchenko
-
Additional initialization in xtrabackup in order to be able to run printers entry points.
- 415. By Sergei Glushchenko
-
Buffer overrun. Fix bug in release build
- 414. By Sergei Glushchenko
-
Fix percona*.sh tests
- 413. By Sergei Glushchenko
-
Fix build with builtin innodb. Missing percona-*.o deps in Makefile. Added missing .sql for tests
- 412. By Sergei Glushchenko
-
2 basic tests
- 411. By Sergei Glushchenko
-
Merge trunk
- 410. By Sergei Glushchenko
-
Debug build tested. Some initialization errors fixed. Some locking errors fixed.
- 409. By Sergei Glushchenko
-
Fixes after entry points testing. Do not use create_new_db flag in open_or_
create_ log_file_ ex - 408. By Sergei Glushchenko
-
InnoDB coding conventions, comments for functions and arguments.
Fixed some warnings.
Sergei,
I didn't review the actual code, just want to comment on a number of basic things that caught my eye:
- large blocks of empty lines, i.e. after ib_page_ page_print_ list() ibuf_rec_ get_size( )
declaration (and what does that "SOME IBUF STUFF" comment mean?),
and after ib_page_
- lots of lines breaking the 80 chars limit
- I see absolutely no reasons to use C++ and Boost in percona-redo.cc
and percona-pprint.cc. Option parsing is available in my_getopt.c,
which is already used in xtrabackup.c and xbstream.c. And
pprint/reado are very small utilities.
- large block of "#if 0"ed code in percona-redo.cc. If it's a
debug-only code, create appropriately named #defines and some way
to compile a debug binary. If that code is not supposed to be used
by anyone, remove it.
- some commented out code in percona-pprint.c. Same comments as in
the previous item.
- what are those "BEGIN LICENSE" / "END LICENSE" for?
- can innodb_init_param() be moved to innodb_int.[ch] so we don't
create separate files for it, which are also confusingly similar to
innodb_int*?