Skip to content

Commit 7299cfc

Browse files
w41terYour Name
authored andcommitted
[fix](snapshot) skip link binlog files if binlog is not enabled (#61949)
### What problem does this PR solve? Issue Number: close #xxx Related PR: #xxx Problem Summary: ### Release note None ### Check List (For Author) - Test <!-- At least one of them must be included. --> - [ ] Regression test - [ ] Unit Test - [ ] Manual test (add detailed scripts or steps below) - [ ] No need to test or manual test. Explain why: - [ ] This is a refactor/code format and no logic has been changed. - [ ] Previous test can cover this change. - [ ] No code files have been changed. - [ ] Other reason <!-- Add your reason? --> - Behavior changed: - [ ] No. - [ ] Yes. <!-- Explain the behavior change --> - Does this need documentation? - [ ] No. - [ ] Yes. <!-- Add document PR link here. eg: apache/doris-website#1214 --> ### Check List (For Reviewer who merge this PR) - [ ] Confirm the release note - [ ] Confirm test cases - [ ] Confirm document - [ ] Add branch pick label <!-- Add branch pick label that this PR should merge into -->
1 parent 9e8790f commit 7299cfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

be/src/storage/snapshot/snapshot_manager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ Status SnapshotManager::_create_snapshot_files(const TabletSharedPtr& ref_tablet
710710
break;
711711
}
712712

713-
if (!is_copy_binlog) {
713+
if (!is_copy_binlog || !target_tablet->is_enable_binlog()) {
714714
break;
715715
}
716716

0 commit comments

Comments
 (0)