From 71b42f717de0754e7542220d39bb3517fbd6ea10 Mon Sep 17 00:00:00 2001 From: hzcheng Date: Sat, 14 Mar 2020 10:44:59 +0800 Subject: [PATCH] debug test --- src/util/src/tskiplist.c | 1 + src/vnode/tsdb/tests/tsdbTests.cpp | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/util/src/tskiplist.c b/src/util/src/tskiplist.c index 9b8c86658d..85b1d3d206 100644 --- a/src/util/src/tskiplist.c +++ b/src/util/src/tskiplist.c @@ -253,6 +253,7 @@ static __compar_fn_t getKeyComparator(int32_t keyType) { comparFn = compareInt32Val; break; case TSDB_DATA_TYPE_BIGINT: + case TSDB_DATA_TYPE_TIMESTAMP: comparFn = compareInt64Val; break; case TSDB_DATA_TYPE_BOOL: diff --git a/src/vnode/tsdb/tests/tsdbTests.cpp b/src/vnode/tsdb/tests/tsdbTests.cpp index 7b09fdfcde..65522c1262 100644 --- a/src/vnode/tsdb/tests/tsdbTests.cpp +++ b/src/vnode/tsdb/tests/tsdbTests.cpp @@ -48,7 +48,7 @@ TEST(TsdbTest, createRepo) { for (int j = 0; j < schemaNCols(schema); j++) { if (j == 0) { // Just for timestamp - tdAppendColVal(row, (void *)(&time), schemaColAt(schema, j)); + tdAppendColVal(row, (void *)(&ttime), schemaColAt(schema, j)); } else { // For int int val = 10; tdAppendColVal(row, (void *)(&val), schemaColAt(schema, j)); @@ -61,5 +61,7 @@ TEST(TsdbTest, createRepo) { pMsg->length = pMsg->length + sizeof(SSubmitBlk) + pBlock->len; tsdbInsertData(pRepo, pMsg); + + int k = 0; } -- GitLab