Skip to content

Fix double write from unique_ptr in ADIOS2#1743

Merged
franzpoeschel merged 3 commits intoopenPMD:devfrom
franzpoeschel:fix-double-write-from-unique-ptr
Apr 2, 2025
Merged

Fix double write from unique_ptr in ADIOS2#1743
franzpoeschel merged 3 commits intoopenPMD:devfrom
franzpoeschel:fix-double-write-from-unique-ptr

Conversation

@franzpoeschel
Copy link
Contributor

Noticed while working on #1740. WRITE_DATASET operations from unique_ptr buffers that are not yet executed when closing a file, are then accidentally executed twice.
Fixed by immediately taking the flushed operations out of the buffer.

@franzpoeschel franzpoeschel force-pushed the fix-double-write-from-unique-ptr branch from e699054 to c20b2b0 Compare April 2, 2025 16:43
@franzpoeschel franzpoeschel enabled auto-merge (squash) April 2, 2025 16:44
@franzpoeschel franzpoeschel merged commit acd54b4 into openPMD:dev Apr 2, 2025
30 checks passed
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