Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: update toolchain to nightly-2024-04-18 #3740

Merged
merged 9 commits into from
Apr 19, 2024

Conversation

waynexia
Copy link
Member

I hereby agree to the terms of the GreptimeDB CLA.

Refer to a related PR or issue link (optional)

What's changed and what's your intention?

  • Allows clippy.readonly_write_lock = "allow". We need to check it afterward.
  • Remove some unused structs

Checklist

  • I have written the necessary rustdoc comments.
  • I have added the necessary unit tests and integration tests.
  • This PR does not require documentation updates.

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
@github-actions github-actions bot added the docs-not-required This change does not impact docs. label Apr 18, 2024
Copy link
Contributor

@tisonkun tisonkun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rest LGTM. Great patch!

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
Copy link

codecov bot commented Apr 18, 2024

Codecov Report

Attention: Patch coverage is 74.19355% with 24 lines in your changes are missing coverage. Please review.

Project coverage is 85.30%. Comparing base (314f270) to head (9a8bcac).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3740      +/-   ##
==========================================
- Coverage   85.46%   85.30%   -0.16%     
==========================================
  Files         966      944      -22     
  Lines      162498   158768    -3730     
==========================================
- Hits       138871   135434    -3437     
+ Misses      23627    23334     -293     

@tisonkun tisonkun changed the title chore: update toolchain to nightly-2024-04-17 build: update toolchain to nightly-2024-04-17 Apr 18, 2024
@waynexia waynexia requested a review from tisonkun April 18, 2024 15:30
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
@waynexia waynexia changed the title build: update toolchain to nightly-2024-04-17 build: update toolchain to nightly-2024-04-18 Apr 18, 2024
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
Signed-off-by: tison <wander4096@gmail.com>
Copy link
Contributor

@tisonkun tisonkun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Cargo.toml Show resolved Hide resolved
@tisonkun
Copy link
Contributor

cc @MichaelScofield @evenyag @v0y4g3r @zhongzc PTAL.

@MichaelScofield MichaelScofield added this pull request to the merge queue Apr 19, 2024
Merged via the queue into GreptimeTeam:main with commit 0c5f480 Apr 19, 2024
19 checks passed
if let Some(max_value_size) = max_value_size {
if value.len() <= max_value_size {
SplitValue::Single(value)
} else {
SplitValue::Multiple(value.chunks(max_value_size).collect::<Vec<_>>())
let mut values = vec![];
for chunk in value.into_iter().chunks(max_value_size).into_iter() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@WenyXu Will this introduce additional allocations? The original SplitValue holds Vec<&[u8]>.

Copy link
Contributor

@tisonkun tisonkun Apr 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We move the bytes here. Previously it uses a ref but we can actually take the ownership. This calls delegate to itertools IntoChunks, not the slice's chunks that may clone.

@waynexia waynexia deleted the update-toolchain-3 branch April 19, 2024 06:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs-not-required This change does not impact docs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants