#At file:///home/msvensson/mysql/7.0/ based on revid:magnus.blaudd@stripped
4021 Magnus Blåudd 2010-11-26
ndb
remove use of my_stat() from ndb_print_sys_file
modified:
storage/ndb/src/kernel/blocks/dbdih/printSysfile.cpp
=== modified file 'storage/ndb/src/kernel/blocks/dbdih/printSysfile.cpp'
--- a/storage/ndb/src/kernel/blocks/dbdih/printSysfile.cpp 2010-03-10 07:43:06 +0000
+++ b/storage/ndb/src/kernel/blocks/dbdih/printSysfile.cpp 2010-11-26 10:37:44 +0000
@@ -18,11 +18,11 @@
#include <ndb_global.h>
-#include <my_dir.h>
+#include <sys/stat.h>
#include <NdbMain.h>
#include <NdbOut.hpp>
-#include <Sysfile.hpp>
+#include "Sysfile.hpp"
static int g_all = 0;
@@ -139,9 +139,9 @@ NDB_COMMAND(printSysfile,
continue;
}
- MY_STAT sbuf,*st;
+ struct stat sbuf;
- if(!(st=my_stat(filename, &sbuf,0)))
+ if(stat(filename, &sbuf) != 0)
{
ndbout << "Could not find file: \"" << filename << "\"" << endl;
continue;
Attachment: [text/bzr-bundle] bzr/magnus.blaudd@oracle.com-20101126103744-bpmwd8d4oim916l6.bundle
| Thread |
|---|
| • bzr commit into mysql-5.1-telco-7.0 branch (magnus.blaudd:4021) | Magnus Blåudd | 26 Nov |