diff options
Diffstat (limited to 'ndb/test/ndbapi/flexBench.cpp')
-rw-r--r-- | ndb/test/ndbapi/flexBench.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/ndb/test/ndbapi/flexBench.cpp b/ndb/test/ndbapi/flexBench.cpp index 38c8f6e280f..2a2388109a1 100644 --- a/ndb/test/ndbapi/flexBench.cpp +++ b/ndb/test/ndbapi/flexBench.cpp @@ -281,6 +281,7 @@ tellThreads(ThreadData* pt, StartType what) NDB_COMMAND(flexBench, "flexBench", "flexBench", "flexbench", 65535) { + ndb_init(); ThreadData* pThreadsData; int tLoops = 0, i; int returnValue = NDBT_OK; @@ -1031,7 +1032,7 @@ static int readArguments(int argc, const char** argv) const char *q = strrchr(p, ':'); if (q == 0) return -1; - snprintf(statHost, sizeof(statHost), "%.*s", q-p, p); + BaseString::snprintf(statHost, sizeof(statHost), "%.*s", q-p, p); statPort = atoi(q+1); statEnable = true; argc -= 1; @@ -1067,17 +1068,17 @@ static int createTables(Ndb* pMyNdb){ int i; for (i = 0; i < tNoOfAttributes; i++){ - snprintf(attrName[i], MAXSTRLEN, "COL%d", i); + BaseString::snprintf(attrName[i], MAXSTRLEN, "COL%d", i); } // Note! Uses only uppercase letters in table name's // so that we can look at the tables with SQL for (i = 0; i < tNoOfTables; i++){ if (theStdTableNameFlag == 0){ - snprintf(tableName[i], MAXSTRLEN, "TAB%d_%d", i, + BaseString::snprintf(tableName[i], MAXSTRLEN, "TAB%d_%d", i, (int)(NdbTick_CurrentMillisecond() / 1000)); } else { - snprintf(tableName[i], MAXSTRLEN, "TAB%d", i); + BaseString::snprintf(tableName[i], MAXSTRLEN, "TAB%d", i); } } |