reject wal write if exceeds limit
This commit is contained in:
parent
28325c9080
commit
fa03303bad
|
@ -255,7 +255,7 @@ int64_t walWriteWithSyncInfo(SWal *pWal, int64_t index, tmsg_t msgType, SSyncLog
|
||||||
|
|
||||||
// no wal
|
// no wal
|
||||||
if (pWal->cfg.level == TAOS_WAL_NOLOG) return 0;
|
if (pWal->cfg.level == TAOS_WAL_NOLOG) return 0;
|
||||||
if (bodyLen > WAL_MAX_SIZE) {
|
if (bodyLen > TSDB_MAX_WAL_SIZE) {
|
||||||
terrno = TSDB_CODE_WAL_SIZE_LIMIT;
|
terrno = TSDB_CODE_WAL_SIZE_LIMIT;
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue