frostfs-node/pkg/local_object_storage/engine
Evgenii Stratonikov c98357606b
[#1606] Use slices.Clone()/bytes.Clone() where possible
gopatch:
```
@@
var from, to expression
@@
+import "bytes"
-to := make([]byte, len(from))
-copy(to, from)
+to := bytes.Clone(from)

@@
var from, to expression
@@
+import "bytes"
-to = make([]byte, len(from))
-copy(to, from)
+to = bytes.Clone(from)

@@
var from, to, typ expression
@@
+import "slices"
-to := make([]typ, len(from))
-copy(to, from)
+to := slices.Clone(from)

@@
var from, to, typ expression
@@
+import "slices"
-to = make([]typ, len(from))
-copy(to, from)
+to = slices.Clone(from)
```

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2025-01-17 14:50:14 +03:00
..
container.go [#1598] golangci: Enable unparam linter 2025-01-14 09:06:47 +03:00
control.go [#1568] storage: Remove "could not/can't/failed to" from error messages 2024-12-18 15:52:26 +00:00
control_test.go [#1491] engine/test: Rework engine test utils 2024-11-13 14:42:53 +03:00
delete.go [#1598] engine: Drop unnecessary result structs 2025-01-14 11:15:21 +03:00
delete_test.go [#1598] engine: Drop unnecessary result structs 2025-01-14 11:15:21 +03:00
engine.go [#1502] Use zap.Error for logging errors 2024-12-16 11:13:42 +03:00
engine_test.go [#1527] engine/test: Move default metabase options to separate function 2024-12-02 16:13:37 +03:00
error_test.go [#1491] engine/test: Rework engine test utils 2024-11-13 14:42:53 +03:00
evacuate.go [#1606] Use slices.Clone()/bytes.Clone() where possible 2025-01-17 14:50:14 +03:00
evacuate_limiter.go [#1606] Use slices.Clone()/bytes.Clone() where possible 2025-01-17 14:50:14 +03:00
evacuate_test.go [#1549] engine: Drop Async flag from evacuation parameters 2024-12-10 17:00:00 +03:00
exists.go [#1437] node: Fix contextcheck linter 2024-11-13 10:36:10 +03:00
exists_test.go [#1548] engine: Rename parent -> ecParent 2024-12-11 07:26:33 +00:00
get.go [#1502] Use zap.Error for logging errors 2024-12-16 11:13:42 +03:00
head.go [#1437] node: Fix contextcheck linter 2024-11-13 10:36:10 +03:00
head_test.go [#1491] engine/test: Rework engine test utils 2024-11-13 14:42:53 +03:00
info.go Rename package name 2023-03-07 16:38:26 +03:00
inhume.go [#1598] engine: Drop unnecessary result structs 2025-01-14 11:15:21 +03:00
inhume_test.go [#1598] engine: Drop unnecessary result structs 2025-01-14 11:15:21 +03:00
list.go [#1484] engine: Fix engine metrics 2024-11-11 12:59:20 +03:00
list_test.go [#1491] engine/test: Rework engine test utils 2024-11-13 14:42:53 +03:00
lock.go [#1437] node: Fix contextcheck linter 2024-11-13 10:36:10 +03:00
lock_test.go [#1598] engine: Drop unnecessary result structs 2025-01-14 11:15:21 +03:00
metrics.go [#1596] metrics: Create public aliases for internal engine metrics 2025-01-13 10:05:01 +00:00
put.go [#1502] Use zap.Error for logging errors 2024-12-16 11:13:42 +03:00
range.go [#1502] Use zap.Error for logging errors 2024-12-16 11:13:42 +03:00
rebuild.go [#1337] config: Move rebuild_worker_count to shard section 2024-09-06 13:57:27 +03:00
remove_copies.go [#1437] node: Use ctx for logging 2024-11-13 10:36:07 +03:00
remove_copies_test.go [#1317] go.mod: Use range over int 2024-09-03 13:00:54 +03:00
select.go [#1598] golangci: Enable unparam linter 2025-01-14 09:06:47 +03:00
shards.go [#1598] golangci: Enable unconvert linters 2025-01-14 09:06:40 +03:00
shards_test.go [#1491] engine/test: Rework engine test utils 2024-11-13 14:42:53 +03:00
tree.go [#1437] node: Fix contextcheck linter 2024-11-13 10:36:10 +03:00
tree_test.go [#1412] searchSvc: Check container is indexed 2024-10-08 11:41:50 +03:00
writecache.go [#1367] writecache: Drop DB label from metrics 2024-09-12 15:06:33 +03:00