Commit 626c24af authored by unknown's avatar unknown

enabled make of ndb_redo_log_reader

parent 35b3260d
#SUBDIRS = redoLogReader
noinst_LIBRARIES = libdblqh.a noinst_LIBRARIES = libdblqh.a
EXTRA_PROGRAMS = ndbd_redo_log_reader
libdblqh_a_SOURCES = DblqhInit.cpp DblqhMain.cpp libdblqh_a_SOURCES = DblqhInit.cpp DblqhMain.cpp
ndbd_redo_log_reader_SOURCES = redoLogReader/records.cpp redoLogReader/redoLogFileReader.cpp
include $(top_srcdir)/ndb/config/common.mk.am include $(top_srcdir)/ndb/config/common.mk.am
include $(top_srcdir)/ndb/config/type_kernel.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
# Don't update the files from bitkeeper # Don't update the files from bitkeeper
%::SCCS/s.% %::SCCS/s.%
......
...@@ -40,7 +40,7 @@ Uint32 readFromFile(FILE * f, Uint32 *toPtr, Uint32 sizeInWords); ...@@ -40,7 +40,7 @@ Uint32 readFromFile(FILE * f, Uint32 *toPtr, Uint32 sizeInWords);
void readArguments(int argc, const char** argv); void readArguments(int argc, const char** argv);
void doExit(); void doExit();
FILE * f; FILE * f= 0;
char fileName[256]; char fileName[256];
bool thePrintFlag = true; bool thePrintFlag = true;
bool theCheckFlag = true; bool theCheckFlag = true;
...@@ -458,7 +458,7 @@ void readArguments(int argc, const char** argv) ...@@ -458,7 +458,7 @@ void readArguments(int argc, const char** argv)
void doExit() { void doExit() {
ndbout << "Error in redoLogReader(). Exiting!" << endl; ndbout << "Error in redoLogReader(). Exiting!" << endl;
fclose(f); if (f) fclose(f);
delete [] redoLogPage; delete [] redoLogPage;
exit(RETURN_ERROR); exit(RETURN_ERROR);
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment