Skip to content

fix(state/indexer): copy value (backport #4321)#4325

Merged
mergify[bot] merged 2 commits intov0.38.x-experimentalfrom
mergify/bp/v0.38.x-experimental/pr-4321
Oct 24, 2024
Merged

fix(state/indexer): copy value (backport #4321)#4325
mergify[bot] merged 2 commits intov0.38.x-experimentalfrom
mergify/bp/v0.38.x-experimental/pr-4321

Conversation

@mergify
Copy link
Contributor

@mergify mergify bot commented Oct 24, 2024

Because, in cometbft-db v0.13+, the iterator is being reused so we need to always copy key and value if we're storing them in a map or other in-memory structure.

Closes #4295


This is an automatic backport of pull request #4321 done by [Mergify](https://mergify.com).

Because, in cometbft-db v0.13+, the iterator is being reused so we need
to always copy key and value if we're storing them in a map or other
in-memory structure.

Closes #4295

(cherry picked from commit 2fee473)

# Conflicts:
#	go.sum
#	state/txindex/kv/kv.go
@mergify mergify bot added the conflicts label Oct 24, 2024
@mergify mergify bot requested a review from a team as a code owner October 24, 2024 07:34
@mergify
Copy link
Contributor Author

mergify bot commented Oct 24, 2024

Cherry-pick of 2fee473 has failed:

On branch mergify/bp/v0.38.x-experimental/pr-4321
Your branch is up to date with 'origin/v0.38.x-experimental'.

You are currently cherry-picking commit 2fee473e9.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Changes to be committed:
	modified:   go.mod
	modified:   state/indexer/block/kv/kv.go
	modified:   test/e2e/docker/Dockerfile

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	both modified:   go.sum
	both modified:   state/txindex/kv/kv.go

To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally

@mergify mergify bot merged commit 2424f7a into v0.38.x-experimental Oct 24, 2024
@mergify mergify bot deleted the mergify/bp/v0.38.x-experimental/pr-4321 branch October 24, 2024 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant