Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
2454cf0c
T
TDengine
项目概览
taosdata
/
TDengine
大约 1 年 前同步成功
通知
1185
Star
22015
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
2454cf0c
编写于
12月 21, 2022
作者:
S
Shengliang Guan
提交者:
GitHub
12月 21, 2022
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #19058 from taosdata/release/ver-3.0.2.1
release: build 3.0.2.1
上级
898e066b
9cf70d8b
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
61 addition
and
27 deletion
+61
-27
cmake/cmake.define
cmake/cmake.define
+3
-1
cmake/cmake.version
cmake/cmake.version
+1
-1
packaging/release.sh
packaging/release.sh
+10
-3
packaging/tools/makeclient.sh
packaging/tools/makeclient.sh
+4
-4
packaging/tools/makepkg.sh
packaging/tools/makepkg.sh
+34
-9
source/dnode/vnode/src/tsdb/tsdbMergeTree.c
source/dnode/vnode/src/tsdb/tsdbMergeTree.c
+9
-9
未找到文件。
cmake/cmake.define
浏览文件 @
2454cf0c
...
@@ -124,7 +124,9 @@ ELSE ()
...
@@ -124,7 +124,9 @@ ELSE ()
ENDIF ()
ENDIF ()
INCLUDE(CheckCCompilerFlag)
INCLUDE(CheckCCompilerFlag)
IF (("${CMAKE_C_COMPILER_ID}" MATCHES "Clang") OR ("${CMAKE_C_COMPILER_ID}" MATCHES "AppleClang"))
IF (TD_ARM_64 OR TD_ARM_32)
SET(COMPILER_SUPPORT_SSE42 false)
ELSEIF (("${CMAKE_C_COMPILER_ID}" MATCHES "Clang") OR ("${CMAKE_C_COMPILER_ID}" MATCHES "AppleClang"))
SET(COMPILER_SUPPORT_SSE42 true)
SET(COMPILER_SUPPORT_SSE42 true)
MESSAGE(STATUS "Always enable sse4.2 for Clang/AppleClang")
MESSAGE(STATUS "Always enable sse4.2 for Clang/AppleClang")
ELSE()
ELSE()
...
...
cmake/cmake.version
浏览文件 @
2454cf0c
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
IF (DEFINED VERNUMBER)
IF (DEFINED VERNUMBER)
SET(TD_VER_NUMBER ${VERNUMBER})
SET(TD_VER_NUMBER ${VERNUMBER})
ELSE ()
ELSE ()
SET(TD_VER_NUMBER "3.0.2.
0
")
SET(TD_VER_NUMBER "3.0.2.
1
")
ENDIF ()
ENDIF ()
IF (DEFINED VERCOMPATIBLE)
IF (DEFINED VERCOMPATIBLE)
...
...
packaging/release.sh
浏览文件 @
2454cf0c
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
# Generate the deb package for ubuntu, or rpm package for centos, or tar.gz package for other linux os
# Generate the deb package for ubuntu, or rpm package for centos, or tar.gz package for other linux os
set
-e
set
-e
#set -x
#
set -x
# release.sh -v [cluster | edge]
# release.sh -v [cluster | edge]
# -c [aarch32 | aarch64 | x64 | x86 | mips64 | loongarch64...]
# -c [aarch32 | aarch64 | x64 | x86 | mips64 | loongarch64...]
...
@@ -96,6 +96,8 @@ while getopts "hv:V:c:o:l:s:d:a:n:m:H:" arg; do
...
@@ -96,6 +96,8 @@ while getopts "hv:V:c:o:l:s:d:a:n:m:H:" arg; do
esac
esac
done
done
osType
=
$(
uname
)
echo
"verMode=
${
verMode
}
verType=
${
verType
}
cpuType=
${
cpuType
}
osType=
${
osType
}
pagMode=
${
pagMode
}
soMode=
${
soMode
}
dbName=
${
dbName
}
allocator=
${
allocator
}
verNumber=
${
verNumber
}
verNumberComp=
${
verNumberComp
}
httpdBuild=
${
httpdBuild
}
"
echo
"verMode=
${
verMode
}
verType=
${
verType
}
cpuType=
${
cpuType
}
osType=
${
osType
}
pagMode=
${
pagMode
}
soMode=
${
soMode
}
dbName=
${
dbName
}
allocator=
${
allocator
}
verNumber=
${
verNumber
}
verNumberComp=
${
verNumberComp
}
httpdBuild=
${
httpdBuild
}
"
curr_dir
=
$(
pwd
)
curr_dir
=
$(
pwd
)
...
@@ -233,7 +235,12 @@ else
...
@@ -233,7 +235,12 @@ else
exit
1
exit
1
fi
fi
CORES
=
$(
grep
-c
^processor /proc/cpuinfo
)
ostype
=
`
uname
`
if
[
"
${
ostype
}
"
==
"Darwin"
]
;
then
CORES
=
$(
sysctl
-n
hw.ncpu
)
else
CORES
=
$(
grep
-c
^processor /proc/cpuinfo
)
fi
if
[[
"
$allocator
"
==
"jemalloc"
]]
;
then
if
[[
"
$allocator
"
==
"jemalloc"
]]
;
then
# jemalloc need compile first, so disable parallel build
# jemalloc need compile first, so disable parallel build
...
@@ -306,7 +313,7 @@ if [ "$osType" != "Darwin" ]; then
...
@@ -306,7 +313,7 @@ if [ "$osType" != "Darwin" ]; then
${
csudo
}
./makeclient.sh
${
compile_dir
}
${
verNumber
}
"
${
build_time
}
"
${
cpuType
}
${
osType
}
${
verMode
}
${
verType
}
${
pagMode
}
${
dbName
}
${
csudo
}
./makeclient.sh
${
compile_dir
}
${
verNumber
}
"
${
build_time
}
"
${
cpuType
}
${
osType
}
${
verMode
}
${
verType
}
${
pagMode
}
${
dbName
}
else
else
# only make client for Darwin
cd
${
script_dir
}
/tools
cd
${
script_dir
}
/tools
./makepkg.sh
${
compile_dir
}
${
verNumber
}
"
${
build_time
}
"
${
cpuType
}
${
osType
}
${
verMode
}
${
verType
}
${
pagMode
}
${
verNumberComp
}
${
dbName
}
./makeclient.sh
${
compile_dir
}
${
verNumber
}
"
${
build_time
}
"
${
cpuType
}
${
osType
}
${
verMode
}
${
verType
}
${
pagMode
}
${
dbName
}
./makeclient.sh
${
compile_dir
}
${
verNumber
}
"
${
build_time
}
"
${
cpuType
}
${
osType
}
${
verMode
}
${
verType
}
${
pagMode
}
${
dbName
}
fi
fi
packaging/tools/makeclient.sh
浏览文件 @
2454cf0c
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
#
#
# Generate tar.gz package for linux client in all os system
# Generate tar.gz package for linux client in all os system
set
-e
set
-e
#set -x
#
set -x
curr_dir
=
$(
pwd
)
curr_dir
=
$(
pwd
)
compile_dir
=
$1
compile_dir
=
$1
...
@@ -249,9 +249,9 @@ if [ "$osType" != "Darwin" ]; then
...
@@ -249,9 +249,9 @@ if [ "$osType" != "Darwin" ]; then
tar
-zcv
-f
"
$(
basename
${
pkg_name
}
)
.tar.gz"
$(
basename
${
install_dir
}
)
--remove-files
||
:
tar
-zcv
-f
"
$(
basename
${
pkg_name
}
)
.tar.gz"
$(
basename
${
install_dir
}
)
--remove-files
||
:
else
else
tar
-zcv
-f
"
$(
basename
${
pkg_name
}
)
.tar.gz"
$(
basename
${
install_dir
}
)
||
:
tar
-zcv
-f
"
$(
basename
${
pkg_name
}
)
.tar.gz"
$(
basename
${
install_dir
}
)
||
:
mv
"
$(
basename
${
pkg_name
}
)
.tar.gz"
..
#
mv "$(basename ${pkg_name}).tar.gz" ..
rm
-rf
./
*
rm
-rf
${
install_dir
}
||
:
mv
../
"
$(
basename
${
pkg_name
}
)
.tar.gz"
.
#
mv ../"$(basename ${pkg_name}).tar.gz" .
fi
fi
cd
${
curr_dir
}
cd
${
curr_dir
}
packaging/tools/makepkg.sh
浏览文件 @
2454cf0c
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
# Generate tar.gz package for all os system
# Generate tar.gz package for all os system
set
-e
set
-e
#set -x
#
set -x
curr_dir
=
$(
pwd
)
curr_dir
=
$(
pwd
)
compile_dir
=
$1
compile_dir
=
$1
...
@@ -74,14 +74,16 @@ else
...
@@ -74,14 +74,16 @@ else
tdinsight_caches
=
""
tdinsight_caches
=
""
cd
${
build_dir
}
/bin/
&&
\
cd
${
build_dir
}
/bin/
&&
\
chmod
+x TDinsight.sh
chmod
+x TDinsight.sh
tdinsight_caches
=
$(
./TDinsight.sh
--download-only
| xargs
-i
printf
"
${
build_dir
}
/bin/{} "
)
./TDinsight.sh
--download-only
||
:
# tdinsight_caches=$(./TDinsight.sh --download-only | xargs -I printf "${build_dir}/bin/{} ")
cd
$orig_pwd
cd
$orig_pwd
echo
"TDinsight caches:
$tdinsight_caches
"
echo
"TDinsight caches:
$tdinsight_caches
"
taostools_bin_files
=
"
${
build_dir
}
/bin/taosdump
\
taostools_bin_files
=
"
${
build_dir
}
/bin/taosdump
\
${
build_dir
}
/bin/taosBenchmark
\
${
build_dir
}
/bin/taosBenchmark
\
${
build_dir
}
/bin/TDinsight.sh
\
${
build_dir
}
/bin/TDinsight.sh
\
$tdinsight_caches
"
${
build_dir
}
/bin/tdengine-datasource.zip
\
${
build_dir
}
/bin/tdengine-datasource.zip.md5sum"
[
-f
${
build_dir
}
/bin/taosx
]
&&
taosx_bin
=
"
${
build_dir
}
/bin/taosx"
[
-f
${
build_dir
}
/bin/taosx
]
&&
taosx_bin
=
"
${
build_dir
}
/bin/taosx"
bin_files
=
"
${
build_dir
}
/bin/
${
serverName
}
\
bin_files
=
"
${
build_dir
}
/bin/
${
serverName
}
\
...
@@ -96,8 +98,13 @@ else
...
@@ -96,8 +98,13 @@ else
${
script_dir
}
/taosd-dump-cfg.gdb"
${
script_dir
}
/taosd-dump-cfg.gdb"
fi
fi
lib_files
=
"
${
build_dir
}
/lib/libtaos.so.
${
version
}
"
if
[
"
$osType
"
==
"Darwin"
]
;
then
wslib_files
=
"
${
build_dir
}
/lib/libtaosws.so"
lib_files
=
"
${
build_dir
}
/lib/libtaos.
${
version
}
.dylib"
wslib_files
=
"
${
build_dir
}
/lib/libtaosws.dylib"
else
lib_files
=
"
${
build_dir
}
/lib/libtaos.so.
${
version
}
"
wslib_files
=
"
${
build_dir
}
/lib/libtaosws.so"
fi
header_files
=
"
${
code_dir
}
/include/client/taos.h
${
code_dir
}
/include/common/taosdef.h
${
code_dir
}
/include/util/taoserror.h
${
code_dir
}
/include/libs/function/taosudf.h"
header_files
=
"
${
code_dir
}
/include/client/taos.h
${
code_dir
}
/include/common/taosdef.h
${
code_dir
}
/include/util/taoserror.h
${
code_dir
}
/include/libs/function/taosudf.h"
wsheader_files
=
"
${
build_dir
}
/include/taosws.h"
wsheader_files
=
"
${
build_dir
}
/include/taosws.h"
...
@@ -226,7 +233,12 @@ if [ "$verMode" == "cloud" ]; then
...
@@ -226,7 +233,12 @@ if [ "$verMode" == "cloud" ]; then
fi
fi
cd
${
install_dir
}
cd
${
install_dir
}
tar
-zcv
-f
${
tarName
}
*
--remove-files
||
:
if
[
"
$osType
"
!=
"Darwin"
]
;
then
tar
-zcv
-f
${
tarName
}
*
--remove-files
||
:
else
tar
-zcv
-f
${
tarName
}
*
||
:
fi
exitcode
=
$?
exitcode
=
$?
if
[
"
$exitcode
"
!=
"0"
]
;
then
if
[
"
$exitcode
"
!=
"0"
]
;
then
echo
"tar
${
tarName
}
error !!!"
echo
"tar
${
tarName
}
error !!!"
...
@@ -288,7 +300,7 @@ if [[ $dbName == "taos" ]]; then
...
@@ -288,7 +300,7 @@ if [[ $dbName == "taos" ]]; then
if
[
"
$verMode
"
==
"cluster"
]
||
[
"
$verMode
"
==
"cloud"
]
;
then
if
[
"
$verMode
"
==
"cluster"
]
||
[
"
$verMode
"
==
"cloud"
]
;
then
if
[
-d
"
${
web_dir
}
/admin"
]
;
then
if
[
-d
"
${
web_dir
}
/admin"
]
;
then
mkdir
-p
${
install_dir
}
/share/
mkdir
-p
${
install_dir
}
/share/
cp
${
web_dir
}
/admin
${
install_dir
}
/share/
-r
cp
-Rfap
${
web_dir
}
/admin
${
install_dir
}
/share/
cp
${
web_dir
}
/png/taos.png
${
install_dir
}
/share/admin/images/taos.png
cp
${
web_dir
}
/png/taos.png
${
install_dir
}
/share/admin/images/taos.png
else
else
echo
"directory not found for enterprise release:
${
web_dir
}
/admin"
echo
"directory not found for enterprise release:
${
web_dir
}
/admin"
...
@@ -362,7 +374,15 @@ if [ "$pagMode" == "lite" ]; then
...
@@ -362,7 +374,15 @@ if [ "$pagMode" == "lite" ]; then
pkg_name
=
${
pkg_name
}
-Lite
pkg_name
=
${
pkg_name
}
-Lite
fi
fi
tar
-zcv
-f
"
$(
basename
${
pkg_name
}
)
.tar.gz"
"
$(
basename
${
install_dir
}
)
"
--remove-files
||
:
if
[
"
$osType
"
!=
"Darwin"
]
;
then
tar
-zcv
-f
"
$(
basename
${
pkg_name
}
)
.tar.gz"
"
$(
basename
${
install_dir
}
)
"
--remove-files
||
:
else
tar
-zcv
-f
"
$(
basename
${
pkg_name
}
)
.tar.gz"
"
$(
basename
${
install_dir
}
)
"
||
:
rm
-rf
${
install_dir
}
||
:
([
-d
build-taoskeeper
]
&&
rm
-rf
build-taoskeeper
)
||
:
fi
exitcode
=
$?
exitcode
=
$?
if
[
"
$exitcode
"
!=
"0"
]
;
then
if
[
"
$exitcode
"
!=
"0"
]
;
then
echo
"tar
${
pkg_name
}
.tar.gz error !!!"
echo
"tar
${
pkg_name
}
.tar.gz error !!!"
...
@@ -371,7 +391,12 @@ fi
...
@@ -371,7 +391,12 @@ fi
if
[
-n
"
${
taostools_bin_files
}
"
]
;
then
if
[
-n
"
${
taostools_bin_files
}
"
]
;
then
wget https://github.com/taosdata/grafanaplugin/releases/latest/download/TDinsight.sh
-O
${
taostools_install_dir
}
/bin/TDinsight.sh
&&
echo
"TDinsight.sh downloaded!"
||
echo
"failed to download TDinsight.sh"
wget https://github.com/taosdata/grafanaplugin/releases/latest/download/TDinsight.sh
-O
${
taostools_install_dir
}
/bin/TDinsight.sh
&&
echo
"TDinsight.sh downloaded!"
||
echo
"failed to download TDinsight.sh"
tar
-zcv
-f
"
$(
basename
${
taostools_pkg_name
}
)
.tar.gz"
"
$(
basename
${
taostools_install_dir
}
)
"
--remove-files
||
:
if
[
"
$osType
"
!=
"Darwin"
]
;
then
tar
-zcv
-f
"
$(
basename
${
taostools_pkg_name
}
)
.tar.gz"
"
$(
basename
${
taostools_install_dir
}
)
"
--remove-files
||
:
else
tar
-zcv
-f
"
$(
basename
${
taostools_pkg_name
}
)
.tar.gz"
"
$(
basename
${
taostools_install_dir
}
)
"
||
:
rm
-rf
${
taostools_install_dir
}
||
:
fi
exitcode
=
$?
exitcode
=
$?
if
[
"
$exitcode
"
!=
"0"
]
;
then
if
[
"
$exitcode
"
!=
"0"
]
;
then
echo
"tar
${
taostools_pkg_name
}
.tar.gz error !!!"
echo
"tar
${
taostools_pkg_name
}
.tar.gz error !!!"
...
...
source/dnode/vnode/src/tsdb/tsdbMergeTree.c
浏览文件 @
2454cf0c
...
@@ -32,13 +32,13 @@ struct SLDataIter {
...
@@ -32,13 +32,13 @@ struct SLDataIter {
};
};
SSttBlockLoadInfo
*
tCreateLastBlockLoadInfo
(
STSchema
*
pSchema
,
int16_t
*
colList
,
int32_t
numOfCols
)
{
SSttBlockLoadInfo
*
tCreateLastBlockLoadInfo
(
STSchema
*
pSchema
,
int16_t
*
colList
,
int32_t
numOfCols
)
{
SSttBlockLoadInfo
*
pLoadInfo
=
taosMemoryCalloc
(
TSDB_
DEFAULT_STT_FILE
,
sizeof
(
SSttBlockLoadInfo
));
SSttBlockLoadInfo
*
pLoadInfo
=
taosMemoryCalloc
(
TSDB_
MAX_STT_TRIGGER
,
sizeof
(
SSttBlockLoadInfo
));
if
(
pLoadInfo
==
NULL
)
{
if
(
pLoadInfo
==
NULL
)
{
terrno
=
TSDB_CODE_OUT_OF_MEMORY
;
terrno
=
TSDB_CODE_OUT_OF_MEMORY
;
return
NULL
;
return
NULL
;
}
}
for
(
int32_t
i
=
0
;
i
<
TSDB_
DEFAULT_STT_FILE
;
++
i
)
{
for
(
int32_t
i
=
0
;
i
<
TSDB_
MAX_STT_TRIGGER
;
++
i
)
{
pLoadInfo
[
i
].
blockIndex
[
0
]
=
-
1
;
pLoadInfo
[
i
].
blockIndex
[
0
]
=
-
1
;
pLoadInfo
[
i
].
blockIndex
[
1
]
=
-
1
;
pLoadInfo
[
i
].
blockIndex
[
1
]
=
-
1
;
pLoadInfo
[
i
].
currentLoadBlockIndex
=
1
;
pLoadInfo
[
i
].
currentLoadBlockIndex
=
1
;
...
@@ -63,7 +63,7 @@ SSttBlockLoadInfo *tCreateLastBlockLoadInfo(STSchema *pSchema, int16_t *colList,
...
@@ -63,7 +63,7 @@ SSttBlockLoadInfo *tCreateLastBlockLoadInfo(STSchema *pSchema, int16_t *colList,
}
}
void
resetLastBlockLoadInfo
(
SSttBlockLoadInfo
*
pLoadInfo
)
{
void
resetLastBlockLoadInfo
(
SSttBlockLoadInfo
*
pLoadInfo
)
{
for
(
int32_t
i
=
0
;
i
<
TSDB_
DEFAULT_STT_FILE
;
++
i
)
{
for
(
int32_t
i
=
0
;
i
<
TSDB_
MAX_STT_TRIGGER
;
++
i
)
{
pLoadInfo
[
i
].
currentLoadBlockIndex
=
1
;
pLoadInfo
[
i
].
currentLoadBlockIndex
=
1
;
pLoadInfo
[
i
].
blockIndex
[
0
]
=
-
1
;
pLoadInfo
[
i
].
blockIndex
[
0
]
=
-
1
;
pLoadInfo
[
i
].
blockIndex
[
1
]
=
-
1
;
pLoadInfo
[
i
].
blockIndex
[
1
]
=
-
1
;
...
@@ -77,14 +77,14 @@ void resetLastBlockLoadInfo(SSttBlockLoadInfo *pLoadInfo) {
...
@@ -77,14 +77,14 @@ void resetLastBlockLoadInfo(SSttBlockLoadInfo *pLoadInfo) {
}
}
void
getLastBlockLoadInfo
(
SSttBlockLoadInfo
*
pLoadInfo
,
int64_t
*
blocks
,
double
*
el
)
{
void
getLastBlockLoadInfo
(
SSttBlockLoadInfo
*
pLoadInfo
,
int64_t
*
blocks
,
double
*
el
)
{
for
(
int32_t
i
=
0
;
i
<
TSDB_
DEFAULT_STT_FILE
;
++
i
)
{
for
(
int32_t
i
=
0
;
i
<
TSDB_
MAX_STT_TRIGGER
;
++
i
)
{
*
el
+=
pLoadInfo
[
i
].
elapsedTime
;
*
el
+=
pLoadInfo
[
i
].
elapsedTime
;
*
blocks
+=
pLoadInfo
[
i
].
loadBlocks
;
*
blocks
+=
pLoadInfo
[
i
].
loadBlocks
;
}
}
}
}
void
*
destroyLastBlockLoadInfo
(
SSttBlockLoadInfo
*
pLoadInfo
)
{
void
*
destroyLastBlockLoadInfo
(
SSttBlockLoadInfo
*
pLoadInfo
)
{
for
(
int32_t
i
=
0
;
i
<
TSDB_
DEFAULT_STT_FILE
;
++
i
)
{
for
(
int32_t
i
=
0
;
i
<
TSDB_
MAX_STT_TRIGGER
;
++
i
)
{
pLoadInfo
[
i
].
currentLoadBlockIndex
=
1
;
pLoadInfo
[
i
].
currentLoadBlockIndex
=
1
;
pLoadInfo
[
i
].
blockIndex
[
0
]
=
-
1
;
pLoadInfo
[
i
].
blockIndex
[
0
]
=
-
1
;
pLoadInfo
[
i
].
blockIndex
[
1
]
=
-
1
;
pLoadInfo
[
i
].
blockIndex
[
1
]
=
-
1
;
...
@@ -154,8 +154,8 @@ static SBlockData *loadLastBlock(SLDataIter *pIter, const char *idStr) {
...
@@ -154,8 +154,8 @@ static SBlockData *loadLastBlock(SLDataIter *pIter, const char *idStr) {
tsdbDebug
(
"read last block, total load:%d, trigger by uid:%"
PRIu64
tsdbDebug
(
"read last block, total load:%d, trigger by uid:%"
PRIu64
", last file index:%d, last block index:%d, entry:%d, rows:%d, %p, elapsed time:%.2f ms, %s"
,
", last file index:%d, last block index:%d, entry:%d, rows:%d, %p, elapsed time:%.2f ms, %s"
,
pInfo
->
loadBlocks
,
pIter
->
uid
,
pIter
->
iStt
,
pIter
->
iSttBlk
,
pInfo
->
currentLoadBlockIndex
,
pBlock
->
nRow
,
pBlock
,
el
,
pInfo
->
loadBlocks
,
pIter
->
uid
,
pIter
->
iStt
,
pIter
->
iSttBlk
,
pInfo
->
currentLoadBlockIndex
,
pBlock
->
nRow
,
idStr
);
pBlock
,
el
,
idStr
);
pInfo
->
blockIndex
[
pInfo
->
currentLoadBlockIndex
]
=
pIter
->
iSttBlk
;
pInfo
->
blockIndex
[
pInfo
->
currentLoadBlockIndex
]
=
pIter
->
iSttBlk
;
tsdbDebug
(
"last block index list:%d, %d, %s"
,
pInfo
->
blockIndex
[
0
],
pInfo
->
blockIndex
[
1
],
idStr
);
tsdbDebug
(
"last block index list:%d, %d, %s"
,
pInfo
->
blockIndex
[
0
],
pInfo
->
blockIndex
[
1
],
idStr
);
...
@@ -552,9 +552,9 @@ int32_t tMergeTreeOpen(SMergeTree *pMTree, int8_t backward, SDataFReader *pFRead
...
@@ -552,9 +552,9 @@ int32_t tMergeTreeOpen(SMergeTree *pMTree, int8_t backward, SDataFReader *pFRead
}
}
pMTree
->
idStr
=
idStr
;
pMTree
->
idStr
=
idStr
;
if
(
!
pMTree
->
backward
)
{
// asc
if
(
!
pMTree
->
backward
)
{
// asc
tRBTreeCreate
(
&
pMTree
->
rbt
,
tLDataIterCmprFn
);
tRBTreeCreate
(
&
pMTree
->
rbt
,
tLDataIterCmprFn
);
}
else
{
// desc
}
else
{
// desc
tRBTreeCreate
(
&
pMTree
->
rbt
,
tLDataIterDescCmprFn
);
tRBTreeCreate
(
&
pMTree
->
rbt
,
tLDataIterDescCmprFn
);
}
}
int32_t
code
=
TSDB_CODE_SUCCESS
;
int32_t
code
=
TSDB_CODE_SUCCESS
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录