mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 18:20:07 +01:00
added make target for printSchemaFile
This commit is contained in:
parent
ea6d5f9ec3
commit
1299ef9526
2 changed files with 11 additions and 12 deletions
|
@ -1,12 +1,20 @@
|
|||
#SUBDIRS = printSchemafile
|
||||
|
||||
noinst_LIBRARIES = libdbdict.a
|
||||
EXTRA_PROGRAMS = printSchemaFile
|
||||
|
||||
libdbdict_a_SOURCES = Dbdict.cpp
|
||||
|
||||
printSchemaFile_SOURCES = printSchemaFile.cpp
|
||||
|
||||
include $(top_srcdir)/ndb/config/common.mk.am
|
||||
include $(top_srcdir)/ndb/config/type_kernel.mk.am
|
||||
|
||||
LDADD += \
|
||||
$(top_builddir)/ndb/src/common/util/libgeneral.la \
|
||||
$(top_builddir)/ndb/src/common/portlib/libportlib.la \
|
||||
$(top_builddir)/dbug/libdbug.a \
|
||||
$(top_builddir)/mysys/libmysys.a \
|
||||
$(top_builddir)/strings/libmystrings.a
|
||||
|
||||
# Don't update the files from bitkeeper
|
||||
%::SCCS/s.%
|
||||
|
||||
|
|
|
@ -1,11 +1,3 @@
|
|||
#if 0
|
||||
make -f Makefile -f - printSchemaFile <<'_eof_'
|
||||
printSchemaFile: printSchemaFile.cpp
|
||||
$(CXXCOMPILE) -o $@ $@.cpp -L../../../common/util/.libs -lgeneral
|
||||
_eof_
|
||||
exit $?
|
||||
#endif
|
||||
|
||||
/* Copyright (C) 2003 MySQL AB
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
|
@ -58,8 +50,7 @@ print(const char * filename, const SchemaFile * file){
|
|||
SchemaFile::TableEntry te = file->TableEntries[i];
|
||||
if(te.m_tableState != SchemaFile::INIT){
|
||||
ndbout << "Table " << i << ": State = " << te.m_tableState
|
||||
<< " version = " << table_version_major(te.m_tableVersion) <<
|
||||
<< "(" << table_version_minor(te.m_tableVersion) << ")"
|
||||
<< " version = " << te.m_tableVersion
|
||||
<< " type = " << te.m_tableType
|
||||
<< " noOfPages = " << te.m_noOfPages
|
||||
<< " gcp: " << te.m_gcp << endl;
|
||||
|
|
Loading…
Add table
Reference in a new issue