Skip to content

Conversation

@Anthony4m
Copy link
Owner

No description provided.

Refactor the ITransaction interface to include error
handling in Commit, Rollback, and Recover methods.  Move
the interface definition to the `transaction` package.
#5
This commit improves the concurrency test by adding a
concurrent readers and writer scenario.  Multiple
reader goroutines acquire shared locks, simulate
reading, and release the locks. A single writer
goroutine then attempts to acquire an exclusive lock,
simulates writing, and releases the lock. This
provides a more robust test of the concurrency
manager's ability to handle concurrent access.  The
test now uses a WaitGroup to ensure all goroutines
complete before the test finishes.
@Anthony4m Anthony4m merged commit 41750b9 into master Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants