Skip to content

Commit

Permalink
[Fix](Snapshot) Shoule use false instead of 0 in while loop (apache#2…
Browse files Browse the repository at this point in the history
  • Loading branch information
Yukang-Lian authored Jun 30, 2023
1 parent 33fa5dd commit 2fcb0e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion be/src/olap/snapshot_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ Status SnapshotManager::_create_snapshot_files(const TabletSharedPtr& ref_tablet
break;
}

} while (0);
} while (false);

if (!res.ok()) {
LOG(WARNING) << "fail to make snapshot, try to delete the snapshot path. path="
Expand Down

0 comments on commit 2fcb0e0

Please sign in to comment.