metabase: Move cheaper conditions to the front in ListWithCursor() #1691

Merged
fyrchik merged 1 commit from fyrchik/frostfs-node:metabase-listwithcursor into master 2025-03-20 12:52:38 +00:00
Owner

objectLocked call is expensive, it does IO. We may omit it if object
is not expired.

Signed-off-by: Evgenii Stratonikov e.stratonikov@yadro.com

`objectLocked` call is expensive, it does IO. We may omit it if object is not expired. Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
fyrchik added 1 commit 2025-03-20 12:29:00 +00:00
metabase: Move cheaper conditions to the front in ListWithCursor()
Some checks failed
DCO action / DCO (pull_request) Failing after 41s
Pre-commit hooks / Pre-commit (pull_request) Successful in 3m0s
Vulncheck / Vulncheck (pull_request) Successful in 2m49s
Build / Build Components (pull_request) Successful in 3m30s
Tests and linters / Staticcheck (pull_request) Successful in 5m3s
Tests and linters / gopls check (pull_request) Successful in 6m2s
Tests and linters / Run gofumpt (pull_request) Successful in 6m21s
Tests and linters / Lint (pull_request) Successful in 6m54s
Tests and linters / Tests with -race (pull_request) Successful in 7m49s
Tests and linters / Tests (pull_request) Successful in 7m54s
8554214ff1
`objectLocked` call is expensive, it does IO. We may omit it if object
is not expired.

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
requested reviews from storage-core-committers, storage-core-developers 2025-03-20 12:29:01 +00:00
dstepanov-yadro approved these changes 2025-03-20 12:30:00 +00:00
fyrchik force-pushed metabase-listwithcursor from 8554214ff1 to 8a5bff3587 2025-03-20 12:30:11 +00:00 Compare
requested review from a-savchuk 2025-03-20 12:34:26 +00:00
acid-ant approved these changes 2025-03-20 12:36:58 +00:00
aarifullin approved these changes 2025-03-20 12:39:07 +00:00
fyrchik merged commit e8801dbf49 into master 2025-03-20 12:52:38 +00:00
fyrchik deleted branch metabase-listwithcursor 2025-03-20 12:52:52 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
4 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-node#1691
No description provided.