提交 3de892d4 编写于 作者: S Shengliang Guan

fix: return 0 if fileptr is null while fsync

上级 574915a4
......@@ -640,7 +640,7 @@ int32_t taosFtruncateFile(TdFilePtr pFile, int64_t l_size) {
int32_t taosFsyncFile(TdFilePtr pFile) {
if (pFile == NULL) {
return -1;
return 0;
}
// this implementation is WRONG
......
......@@ -53,17 +53,25 @@ endi
return
print =============== step2: create database
sql create database db vgroups 33 replica 3
sql create database db vgroups 1 replica 3
sql use db;
sql create table stb (ts timestamp, c int) tags (t int);
sql create table t0 using stb tags (0);
sql insert into t0 values(now, 1);
$x = 0
while $x < 28
sql insert into t0 values(now, 1);
$x = $x + 1
endw
sql select * from information_schema.ins_stables where db_name = 'db';
sql select * from information_schema.ins_tables where db_name = 'db';
sql show db.vgroups;
system sh/exec.sh -n dnode1 -s stop
system sh/exec.sh -n dnode2 -s stop
system sh/exec.sh -n dnode3 -s stop
system sh/exec.sh -n dnode4 -s stop
return
print ======== start back
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册