Skip to content
This repository has been archived by the owner on Mar 7, 2023. It is now read-only.

copy() within txn() is not transactional #17

Open
mohit10verma opened this issue Jun 1, 2020 · 0 comments
Open

copy() within txn() is not transactional #17

mohit10verma opened this issue Jun 1, 2020 · 0 comments
Assignees

Comments

@mohit10verma
Copy link
Collaborator

If we use copy() within txn(), the store will happen, but the old values will not be logged before the update.
Go compiler replaces copy with a runtime call very early during compilation. So during ssa creation, there is no easy way to identify a node which was originally "OCOPY" node.

Ideally go-pmem needs to support transactional copy() semantics within a txn() block OR
throw a syntax error if user uses copy() within txn() block.

@mohit10verma mohit10verma self-assigned this Jun 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant