You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by yi...@apache.org on 2022/10/26 01:02:43 UTC
[doris] branch branch-1.1-lts updated: (jsonreader) release memory of both value and parse allocator (#13652)
This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch branch-1.1-lts
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-1.1-lts by this push:
new adba6fec4a (jsonreader) release memory of both value and parse allocator (#13652)
adba6fec4a is described below
commit adba6fec4a95f9444ebc532a76389a0537912434
Author: Yongqiang YANG <98...@users.noreply.github.com>
AuthorDate: Wed Oct 26 09:02:37 2022 +0800
(jsonreader) release memory of both value and parse allocator (#13652)
---
be/src/exec/json_scanner.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/be/src/exec/json_scanner.cpp b/be/src/exec/json_scanner.cpp
index f2273ffca4..27a22203f4 100644
--- a/be/src/exec/json_scanner.cpp
+++ b/be/src/exec/json_scanner.cpp
@@ -390,7 +390,8 @@ Status JsonReader::_parse_json_doc(size_t* size, bool* eof) {
}
// clear memory here.
- _origin_json_doc.GetAllocator().Clear();
+ _value_allocator.Clear();
+ _parse_allocator.Clear();
bool has_parse_error = false;
// parse jsondata to JsonDoc
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org