From c384fdc65cdae2d879f8aab17d48b31ff60dd536 Mon Sep 17 00:00:00 2001 From: Tyshawn Date: Mon, 23 Oct 2023 07:43:47 +0000 Subject: [PATCH] [CP] [BUG.FIX] fix coredump when it comes to -4013 --- src/storage/tablet/ob_table_store_util.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/storage/tablet/ob_table_store_util.cpp b/src/storage/tablet/ob_table_store_util.cpp index 29ed0cd829..2e59bc04c5 100755 --- a/src/storage/tablet/ob_table_store_util.cpp +++ b/src/storage/tablet/ob_table_store_util.cpp @@ -78,7 +78,6 @@ int ObSSTableArray::init(ObArenaAllocator &allocator, const blocksstable::ObSSTa ret = OB_INVALID_ARGUMENT; LOG_WARN("try to init sstable array with an unserialized sstable", K(ret), KPC(sstable)); } else { - cnt_ = 1; sstable_array_ = reinterpret_cast(allocator.alloc(sizeof(ObSSTable *))); if (OB_ISNULL(sstable_array_)) { ret = OB_ALLOCATE_MEMORY_FAILED; @@ -86,6 +85,7 @@ int ObSSTableArray::init(ObArenaAllocator &allocator, const blocksstable::ObSSTa } else if (OB_FAIL(sstable->deep_copy(allocator, sstable_array_[0]))) { LOG_WARN("fail to deep copy sstable address", K(ret), KPC(sstable)); } else { + cnt_ = 1; is_inited_ = true; } }