From cf8185c5f0c43b9476ed1fe391dc33342323a30b Mon Sep 17 00:00:00 2001 From: Bill Date: Mon, 23 Jan 2023 23:04:15 +0800 Subject: [PATCH] bug fix --- server/table_ext_monetdb.hpp | 2 +- server/vector_type.hpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/server/table_ext_monetdb.hpp b/server/table_ext_monetdb.hpp index 65d34e5..f4a7571 100644 --- a/server/table_ext_monetdb.hpp +++ b/server/table_ext_monetdb.hpp @@ -82,7 +82,7 @@ void TableInfo::monetdb_append_table(void* srv, const char* alt_name) { finialize: for(uint32_t i = 0; i < cnt; ++i) - GC::gc_handle->reg(gc_vecs[i]); + ;//GC::gc_handle->reg(gc_vecs[i]); } diff --git a/server/vector_type.hpp b/server/vector_type.hpp index 6b21ff9..3cf6057 100644 --- a/server/vector_type.hpp +++ b/server/vector_type.hpp @@ -60,6 +60,7 @@ public: if (GC::scratch_space != nullptr) { [[likely]] container = (_Ty*)GC::scratch_space->alloc(size * sizeof(_Ty)); + this->capacity = 0; } else{ container = (_Ty*)malloc(size * sizeof(_Ty));