frostfs-node/pkg/local_object_storage/shard
Ekaterina Lebedeva a685fcdc96
All checks were successful
DCO action / DCO (pull_request) Successful in 2m41s
Tests and linters / Run gofumpt (pull_request) Successful in 2m32s
Vulncheck / Vulncheck (pull_request) Successful in 2m38s
Build / Build Components (1.23) (pull_request) Successful in 3m0s
Build / Build Components (1.22) (pull_request) Successful in 3m3s
Pre-commit hooks / Pre-commit (pull_request) Successful in 3m33s
Tests and linters / Tests (1.22) (pull_request) Successful in 3m34s
Tests and linters / Tests (1.23) (pull_request) Successful in 3m36s
Tests and linters / Staticcheck (pull_request) Successful in 3m35s
Tests and linters / Lint (pull_request) Successful in 4m18s
Tests and linters / Tests with -race (pull_request) Successful in 4m20s
Tests and linters / gopls check (pull_request) Successful in 4m25s
[#1317] go.mod: Use range over int
Since Go 1.22 a "for" statement with a "range" clause is able
to iterate through integer values from zero to an upper limit.

gopatch script:
@@
var i, e expression
@@
-for i := 0; i <= e - 1; i++ {
+for i := range e {
    ...
}

@@
var i, e expression
@@
-for i := 0; i <= e; i++ {
+for i := range e + 1 {
    ...
}

@@
var i, e expression
@@
-for i := 0; i < e; i++ {
+for i := range e {
    ...
}

Signed-off-by: Ekaterina Lebedeva <ekaterina.lebedeva@yadro.com>
2024-09-03 13:00:54 +03:00
..
mode [#1121] node: Change mode of shard components 2024-06-05 05:55:24 +00:00
container.go [#864] engine: Drop container count metric if container removed 2024-01-10 10:45:32 +03:00
control.go [#1320] shard: Fix TestGCDropsObjectInhumedFromWritecache flaky test 2024-09-02 10:26:53 +03:00
control_test.go [#1029] metabase: Add refill metrics 2024-04-10 13:05:44 +03:00
count.go [#838] metabase: Add user object type counter 2023-12-06 15:44:21 +03:00
delete.go [#1261] shard: Fix delete objects from FSTree 2024-07-22 14:38:09 +03:00
delete_test.go [#895] test: Use t.Cleanup only for external resources 2024-01-11 12:32:09 +00:00
errors.go [#481] Update frostfs-sdk-go and error pointer receivers 2023-08-09 10:26:53 +00:00
exists.go [#1147] node: Use public fields for shard.ExistsPrm 2024-05-30 08:13:04 +00:00
gc.go [#1147] gc: Execute callback for expired tombstones when they exists 2024-05-30 08:13:04 +00:00
gc_internal_test.go [#1004] blobovnicza: Use TTL for blobovnicza tree cache 2024-04-26 19:54:29 +03:00
gc_test.go [#1320] shard: Fix TestGCDropsObjectInhumedFromWritecache flaky test 2024-09-02 10:26:53 +03:00
get.go [#146] node: Add trace_id to logs 2023-09-27 11:05:27 +03:00
get_test.go [#895] test: Use t.Cleanup only for external resources 2024-01-11 12:32:09 +00:00
head.go [#1086] engine: Do not use metabase if shard looks bad 2024-06-13 07:35:22 +00:00
head_test.go [#895] test: Use t.Cleanup only for external resources 2024-01-11 12:32:09 +00:00
id.go [#949] metabase: fix shard.UpdateID() 2024-04-01 17:27:34 +03:00
info.go [#1005] engine: Drop shards weights 2024-02-26 17:25:05 +03:00
inhume.go [#864] metabase: Refactor delete/inhume 2024-01-09 09:59:42 +03:00
inhume_test.go [#895] test: Use t.Cleanup only for external resources 2024-01-11 12:32:09 +00:00
list.go [#1129] policer: Add EC chunk replication 2024-05-16 16:28:48 +03:00
list_test.go [#1317] go.mod: Use range over int 2024-09-03 13:00:54 +03:00
lock.go [#1147] node: Implement Lock\Delete requests for EC object 2024-05-30 08:13:04 +00:00
lock_test.go [#1004] blobovnicza: Use TTL for blobovnicza tree cache 2024-04-26 19:54:29 +03:00
metrics_test.go [#1317] go.mod: Use range over int 2024-09-03 13:00:54 +03:00
mode.go [#453] engine: Set Disabled mode to deleted shard 2023-06-20 12:04:07 +03:00
put.go [#904] metabase: Return if object was actuall inserted 2024-01-17 19:04:39 +03:00
range.go [#481] Update frostfs-sdk-go and error pointer receivers 2023-08-09 10:26:53 +00:00
range_test.go [#1004] blobovnicza: Use TTL for blobovnicza tree cache 2024-04-26 19:54:29 +03:00
rebuild_limiter.go [#661] blobovniczatree: Make Rebuild concurrent 2023-12-07 15:37:33 +03:00
rebuilder.go [#661] blobovniczatree: Make Rebuild concurrent 2023-12-07 15:37:33 +03:00
refill_test.go [#1317] go.mod: Use range over int 2024-09-03 13:00:54 +03:00
reload_test.go [#1147] node: Use public fields for shard.ExistsPrm 2024-05-30 08:13:04 +00:00
select.go [#496] node: Fix linter importas 2023-07-06 15:36:41 +03:00
shard.go [#1320] shard: Fix TestGCDropsObjectInhumedFromWritecache flaky test 2024-09-02 10:26:53 +03:00
shard_test.go [#1004] blobovnicza: Use TTL for blobovnicza tree cache 2024-04-26 19:54:29 +03:00
shutdown_test.go [#895] test: Use t.Cleanup only for external resources 2024-01-11 12:32:09 +00:00
tree.go [#1251] pilorama: Allow traversing multiple branches in parallel 2024-07-17 11:25:07 +03:00
writecache.go [#1284] writecache: Allow to seal writecache async 2024-08-09 13:23:35 +03:00