You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by mo...@apache.org on 2022/10/26 01:20:41 UTC
[doris] branch master updated: [fix](load) fix core dump when get_memtable_consumption_inflush (#13629)
This is an automated email from the ASF dual-hosted git repository.
morningman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 2563dcca95 [fix](load) fix core dump when get_memtable_consumption_inflush (#13629)
2563dcca95 is described below
commit 2563dcca95f3c9a62207d9da54a6373a47d991af
Author: zhannngchen <48...@users.noreply.github.com>
AuthorDate: Wed Oct 26 09:20:33 2022 +0800
[fix](load) fix core dump when get_memtable_consumption_inflush (#13629)
If delta writer is not inited, _flush_token might be nullptr.
---
be/src/olap/delta_writer.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/be/src/olap/delta_writer.cpp b/be/src/olap/delta_writer.cpp
index e7ade20214..c8a36fbec7 100644
--- a/be/src/olap/delta_writer.cpp
+++ b/be/src/olap/delta_writer.cpp
@@ -389,7 +389,7 @@ void DeltaWriter::save_mem_consumption_snapshot() {
}
int64_t DeltaWriter::get_memtable_consumption_inflush() const {
- if (_flush_token->get_stats().flush_running_count == 0) return 0;
+ if (!_is_init || _flush_token->get_stats().flush_running_count == 0) return 0;
return _mem_consumption_snapshot - _memtable_consumption_snapshot;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org