Gwen Lg
|
b060a7e0f1
|
fix: remove func call from alternative value.
this avoid useless allocation or non-trivial work, if the default value
is not needed/used.
add a line in Cargo.toml to easly enable or_fun_call lint
help: https://rust-lang.github.io/rust-clippy/master/index.html?search=or_fun_call
|
2026-02-17 18:38:44 +00:00 |
|
Gwen Lg
|
08fd6e659f
|
docs: add missing backticks in documentation
this improve readability of documentation.
enable associated clippy lint `doc_markdown`
|
2026-02-17 18:38:44 +00:00 |
|
Gwen Lg
|
6dbcdcd784
|
style: improve use of std api
- replace get(0) by first()
lint message: accessing first element with `objs.get(0)`
help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.92.0/index.html#get_first
- use io::Error::other method available since Rust 1.87
lint message: this can be `std::io::Error::other(_)`
help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.92.0/index.html#io_other_error
- implement From<_> instead of Into<_>
lint message: an implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true
help: `impl From<Local> for Foreign` is allowed by the orphan rules, for more information see
https://doc.rust-lang.org/reference/items/implementations.html#trait-implementation-coherence
help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.92.0/index.html#from_over_into
- use next_back instead of rev + next
lint message: manual backwards iteration
help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.92.0/index.html#manual_next_back
- use saturating_sub instead of manual implement it
lint message: manual arithmetic check found
help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.92.0/index.html#implicit_saturating_sub
- add Default implementation for Checksummer
use derived Default ans use it in new, as new set all value to None
lint message: you should consider adding a `Default` implementation for `Checksummer`
help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.92.0/index.html#new_without_default
- use `any` instead of `find` + `is_some`
lint message: called `is_some()` after searching an `Iterator` with `find`
help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.92.0/index.html#search_is_some
- replace `and_then` + `Some(_)` with `map`
lint message: using `Option.and_then(|x| Some(y))`, which is more succinctly expressed as `map(|x| y)`
help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.92.0/index.html#bind_instead_of_map
- replace `skip_while` + `next` with `find`
lint message: called `skip_while(<p>).next()` on an `Iterator`
help: this is more succinctly expressed by calling `.find(!<p>)` instead
help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.92.0/index.html#skip_while_next
- use `matches!` instead of manual implementation
lint message: match expression looks like `matches!` macro
help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.92.0/index.html#match_like_matches_macro
- use `keys` and `values methods insteads of iterating and ignoring either the keys or values.
help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.92.0/index.html#iter_kv_map
|
2026-01-29 20:49:28 +01:00 |
|
Alex Auvolat
|
4c139bcbca
|
add error case for layout not ready, and fail earlier in many places
|
2025-09-13 20:52:51 +02:00 |
|
Yureka
|
a2d87a012d
|
refactor: use replication factor of the layout versions in calculate_sync_map_min_with_quorum
|
2025-04-28 11:51:01 +02:00 |
|
Alex Auvolat
|
c6bed26347
|
relocalize logic into block manager
|
2025-03-25 16:41:19 +01:00 |
|
Alex Auvolat
|
d25e631a4a
|
relocalize logic for write_sets
|
2025-03-25 16:35:56 +01:00 |
|
Alex Auvolat
|
514eb29874
|
use a WriteLock for write operations on fullcopy tables
|
2025-03-25 13:26:23 +01:00 |
|
Alex Auvolat
|
2f2a96b51d
|
layout & replication mode refactoring
|
2025-03-25 11:05:00 +01:00 |
|
Alex Auvolat
|
d0104b9f9b
|
block manager: write blocks only to currently active layout version (fix #815)
avoid wastefully writing blocks to nodes that will discard them as soon
as the layout migration is finished
|
2025-02-14 16:45:55 +01:00 |
|
Stefan Majer
|
2eb9fcae20
|
Fix all typos
|
2025-01-16 13:22:00 +01:00 |
|
Alex Auvolat
|
4eba32f29f
|
[next-0.10] layout helper: rename & clarify updates to update trackers
|
2024-03-27 13:47:06 +01:00 |
|
Alex Auvolat
|
32f1786f9f
|
[next-0.10] cache layout check result
|
2024-03-27 13:37:20 +01:00 |
|
Alex Auvolat
|
01a0bd5410
|
[next-0.10] remove impl Deref for LayoutHelper
|
2024-03-27 13:32:13 +01:00 |
|
Alex Auvolat
|
c0eeb0b0f3
|
[next-0.10] fixes to k2v rpc + comment fixes
|
2024-03-27 10:44:03 +01:00 |
|
Yureka
|
c1769bbe69
|
ReplicationMode -> ConsistencyMode+ReplicationFactor
|
2024-03-07 12:45:33 +01:00 |
|
Alex Auvolat
|
0041b013a4
|
layout: refactoring and fix in layout helper
|
2023-12-11 16:09:22 +01:00 |
|
Alex Auvolat
|
85b5a6bcd1
|
fix some clippy lints
|
2023-12-11 15:31:47 +01:00 |
|
Alex Auvolat
|
4dbf254512
|
layout: refactoring, merge two files
|
2023-12-08 14:15:52 +01:00 |
|
Alex Auvolat
|
5dd200c015
|
layout: move block_read_nodes_of to rpc_helper to avoid double-locking
(in theory, this could have caused a deadlock)
|
2023-12-08 12:02:24 +01:00 |
|
Alex Auvolat
|
9cecea64d4
|
layout: allow sync update tracker to progress with only quorums
|
2023-12-07 14:51:20 +01:00 |
|
Alex Auvolat
|
d90de365b3
|
table sync: use write quorums to report global success or failure of sync
|
2023-12-07 11:16:10 +01:00 |
|
Alex Auvolat
|
c8356a91d9
|
layout updates: fix the set of nodes among which minima are calculated
|
2023-12-07 10:30:26 +01:00 |
|
Alex Auvolat
|
d6d239fc79
|
block manager: read_block using old layout versions if necessary
|
2023-11-27 11:52:57 +01:00 |
|
Alex Auvolat
|
707442f5de
|
layout: refactor digests and add "!=" assertions before epidemic bcast
|
2023-11-16 13:51:40 +01:00 |
|
Alex Auvolat
|
ad5c6f779f
|
layout: split helper in separate file; more precise difference tracking
|
2023-11-16 13:26:43 +01:00 |
|