change block commit factor

This commit is contained in:
Hongze Cheng 2023-10-09 16:03:42 +08:00
parent 2c9a0dbcda
commit 258181e387
1 changed files with 4 additions and 2 deletions

View File

@ -18,6 +18,8 @@
#include "vnd.h"
#include "vndCos.h"
#define BLOCK_COMMIT_FACTOR 3
extern int vnodeScheduleTask(int (*execute)(void *), void *arg);
extern int vnodeScheduleTaskEx(int tpid, int (*execute)(void *), void *arg);
extern void remove_file(const char *fname);
@ -882,7 +884,7 @@ int32_t tsdbFSEditCommit(STFileSystem *fs) {
schedMerge = true;
}
if (numFile >= sttTrigger * 2) {
if (numFile >= sttTrigger * BLOCK_COMMIT_FACTOR) {
blockCommit = true;
}