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/06/19 02:30:22 UTC

[doris] branch master updated: [typo] Fix typos in comments (#10172)

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 70450d04ba [typo] Fix typos in comments (#10172)
70450d04ba is described below

commit 70450d04ba1abc872f5f0514c9f541d0581e93a6
Author: yinzhijian <37...@qq.com>
AuthorDate: Sun Jun 19 10:30:17 2022 +0800

    [typo] Fix typos in comments (#10172)
---
 be/src/runtime/thread_mem_tracker_mgr.h | 2 +-
 be/src/runtime/user_function_cache.cpp  | 4 ++--
 be/src/service/doris_main.cpp           | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/be/src/runtime/thread_mem_tracker_mgr.h b/be/src/runtime/thread_mem_tracker_mgr.h
index e5b82fc939..d582c3a46a 100644
--- a/be/src/runtime/thread_mem_tracker_mgr.h
+++ b/be/src/runtime/thread_mem_tracker_mgr.h
@@ -61,7 +61,7 @@ inline thread_local bool start_thread_mem_tracker = false;
 // If the consume succeeds, the memory is actually allocated, otherwise an exception is thrown.
 // But the statistics of memory through TCMalloc new/delete Hook are after the memory is actually allocated,
 // which is different from the previous behavior. Therefore, when alloc for some large memory,
-// need to manually call cosume after stop_mem_tracker, and then start_mem_tracker.
+// need to manually call consume after stop_mem_tracker, and then start_mem_tracker.
 class ThreadMemTrackerMgr {
 public:
     ThreadMemTrackerMgr() {}
diff --git a/be/src/runtime/user_function_cache.cpp b/be/src/runtime/user_function_cache.cpp
index 33786d2cb0..150cdc6e8f 100644
--- a/be/src/runtime/user_function_cache.cpp
+++ b/be/src/runtime/user_function_cache.cpp
@@ -118,7 +118,7 @@ UserFunctionCache* UserFunctionCache::instance() {
 
 Status UserFunctionCache::init(const std::string& lib_dir) {
 #ifndef BE_TEST
-    // _lib_dir may reuesd bettween unit tests
+    // _lib_dir may be reused between unit tests
     DCHECK(_lib_dir.empty()) << _lib_dir;
 #endif
     _lib_dir = lib_dir;
@@ -265,7 +265,7 @@ Status UserFunctionCache::_get_cache_entry(int64_t fid, const std::string& url,
     if (!st.ok()) {
         LOG(WARNING) << "fail to load cache entry, fid=" << fid;
         // if we load a cache entry failed, I think we should delete this entry cache
-        // evenif this cache was valid before.
+        // even if this cache was valid before.
         _destroy_cache_entry(entry);
         return st;
     }
diff --git a/be/src/service/doris_main.cpp b/be/src/service/doris_main.cpp
index 3230de6e65..00d0900af8 100644
--- a/be/src/service/doris_main.cpp
+++ b/be/src/service/doris_main.cpp
@@ -399,7 +399,7 @@ int main(int argc, char** argv) {
     exec_env->set_storage_engine(engine);
     engine->set_heartbeat_flags(exec_env->heartbeat_flags());
 
-    // start all backgroud threads of storage engine.
+    // start all background threads of storage engine.
     // SHOULD be called after exec env is initialized.
     EXIT_IF_ERROR(engine->start_bg_threads());
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org