From 95cbf8f68b8893f5bb3684e50b42c365fae7ab5d Mon Sep 17 00:00:00 2001 From: shenyushi Date: Thu, 26 Dec 2024 16:58:28 +0800 Subject: [PATCH] fix. --- src/storage/buffer/file_worker/hnsw_file_worker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/storage/buffer/file_worker/hnsw_file_worker.cpp b/src/storage/buffer/file_worker/hnsw_file_worker.cpp index e6c3366cab..b6dde8bcd2 100644 --- a/src/storage/buffer/file_worker/hnsw_file_worker.cpp +++ b/src/storage/buffer/file_worker/hnsw_file_worker.cpp @@ -82,7 +82,7 @@ void HnswFileWorker::AllocateInMemory() { } void HnswFileWorker::FreeInMemory() { - if (!data_ || !hnsw_mem_) { + if (!data_ && !hnsw_mem_) { String error_message = "FreeInMemory: Data is not allocated."; UnrecoverableError(error_message); }