Skip to content

Commit 9ceeae1

Browse files
committed
fix(file-index): remove unnecessary constant lambda capture
1 parent fd7df9f commit 9ceeae1

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎src/paimon/common/file_index/file_index_format_test.cpp‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1037,8 +1037,7 @@ TEST_F(FileIndexFormatTest, TestV2StreamingLargeContainer) {
10371037
// Stream a virtual >2 GiB payload in bounded chunks; the mock discards only this gap.
10381038
const int64_t gap_length = int64_t{1} << 31;
10391039
ASSERT_OK(writer->WriteIndex(
1040-
"gap", "unknown",
1041-
[state, gap_length](const std::shared_ptr<OutputStream>& stream) -> Result<bool> {
1040+
"gap", "unknown", [state](const std::shared_ptr<OutputStream>& stream) -> Result<bool> {
10421041
state->discard = true;
10431042
std::array<char, 65536> zeros{};
10441043
for (int64_t i = 0; i < gap_length; i += zeros.size()) {

0 commit comments

Comments
 (0)