Fix bugs when docker restart

This commit is contained in:
LINxiansheng
2024-04-26 07:16:30 +00:00
committed by ob-robot
parent f8b46b62ff
commit 6797c56e2f
5 changed files with 57 additions and 6 deletions

View File

@ -76,6 +76,8 @@ namespace storage
|| OB_UNLIKELY(0 >= word_len)) {
ret = OB_INVALID_ARGUMENT;
LOG_WARN("invalid arguments", K(ret), KPC(param), KP(allocator), KP(word), K(word_len));
} else if (word_len < FT_MIN_WORD_LEN || word_len > FT_MAX_WORD_LEN) {
LOG_DEBUG("skip too small or large word", K(ret), K(word_len));
} else if (OB_ISNULL(buf = static_cast<char *>(allocator->alloc(word_len)))) {
ret = OB_ALLOCATE_MEMORY_FAILED;
LOG_WARN("fail to allocate word memory", K(ret), K(word_len));

View File

@ -25,6 +25,9 @@ namespace storage
class ObSpaceFTParser final
{
public:
static const int64_t FT_MIN_WORD_LEN = 3;
static const int64_t FT_MAX_WORD_LEN = 84;
public:
static int segment(
lib::ObFTParserParam *param,