Skip to content

Commit

Permalink
Merge pull request #758 from taosdata/fix/TD-30648-3.0
Browse files Browse the repository at this point in the history
fix: add get build info api call
  • Loading branch information
DuanKuanJun committed Jun 19, 2024
2 parents 2ec0f6f + 1f096e9 commit 8adfa82
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
7 changes: 1 addition & 6 deletions src/benchCommandOpt.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ extern char g_configDir[MAX_PATH_LEN];
#endif


// libtaos.so
extern char buildinfo[];

char *g_aggreFuncDemo[] = {"*",
"count(*)",
"avg(current)",
Expand All @@ -50,9 +47,7 @@ void printVersion() {

// version
printf("taosBenchmark version: %s\ngit: %s\n", taosBenchmark_ver, taosBenchmark_commit);
#ifdef LINUX
printf("build: %s\n", buildinfo);
#endif
printf("build: %s\n", getBuildInfo());
if (strlen(taosBenchmark_status) > 0) {
printf("status: %s\n", taosBenchmark_status);
}
Expand Down
8 changes: 3 additions & 5 deletions src/taosdump.c
Original file line number Diff line number Diff line change
Expand Up @@ -656,8 +656,6 @@ static uint64_t getUniqueIDFromEpoch() {
return id;
}

// libtaos.so
extern char buildinfo[];

static void printVersion(FILE *file) {
char taostools_longver[] = TAOSDUMP_TAG;
Expand All @@ -670,9 +668,9 @@ static void printVersion(FILE *file) {
char taosdump_commit[] = TAOSDUMP_COMMIT_SHA1;

fprintf(file,"taosdump version: %s\ngit: %s\n", taostools_ver, taosdump_commit);
#ifdef LINUX
printf("build: %s\n", buildinfo);
#endif

printf("build: %s\n", getBuildInfo());

if (strlen(taosdump_status) > 0) {
fprintf(file, "status:%s\n", taosdump_status);
}
Expand Down

0 comments on commit 8adfa82

Please sign in to comment.