This is an automated email from the ASF dual-hosted git repository.

yiguolei pushed a commit to branch branch-4.1
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-4.1 by this push:
     new 970d951f1e9 branch-4.1: [refactor](snapshot) Allow overriding snapshot 
manager factory source #66923 (#66974)
970d951f1e9 is described below

commit 970d951f1e9019426de04bc1453d0e6c3cb1369d
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Fri Aug 21 10:18:57 2026 +0800

    branch-4.1: [refactor](snapshot) Allow overriding snapshot manager factory 
source #66923 (#66974)
    
    Cherry-picked from #66923
    
    Co-authored-by: Luwei <[email protected]>
---
 cloud/src/snapshot/CMakeLists.txt | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/cloud/src/snapshot/CMakeLists.txt 
b/cloud/src/snapshot/CMakeLists.txt
index 80b22f850dd..2bb01854f7a 100644
--- a/cloud/src/snapshot/CMakeLists.txt
+++ b/cloud/src/snapshot/CMakeLists.txt
@@ -18,4 +18,10 @@
 set(LIBRARY_OUTPUT_PATH "${BUILD_DIR}/src/snapshot")
 set(EXECUTABLE_OUTPUT_PATH "${BUILD_DIR}/src/snapshot")
 set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -lfdb_c 
-L${THIRDPARTY_DIR}/lib")
-add_library(Snapshot snapshot_manager.cpp snapshot_manager_factory.cpp)
+
+# Extension modules may replace the factory while reusing the public 
SnapshotManager API.
+if (NOT DORIS_CLOUD_SNAPSHOT_MANAGER_FACTORY_SOURCE)
+    set(DORIS_CLOUD_SNAPSHOT_MANAGER_FACTORY_SOURCE 
snapshot_manager_factory.cpp)
+endif()
+
+add_library(Snapshot snapshot_manager.cpp 
${DORIS_CLOUD_SNAPSHOT_MANAGER_FACTORY_SOURCE})


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to