Skip to content

fix(dbx): make SetDefault safe for concurrent use via atomic.Value#18

Merged
KARTIKrocks merged 1 commit into
mainfrom
fix/dbx-atomic-default-conn
Mar 31, 2026
Merged

fix(dbx): make SetDefault safe for concurrent use via atomic.Value#18
KARTIKrocks merged 1 commit into
mainfrom
fix/dbx-atomic-default-conn

Conversation

@KARTIKrocks
Copy link
Copy Markdown
Owner

Summary

Motivation

Fixes #

  • dbxdefaultDB is now stored in a sync/atomic.Value; SetDefault is safe for concurrent use and the connection read in conn() is race-free

Checklist

  • fmt, vet, lint, test, build passes (make all)
  • New code has tests where appropriate
  • Breaking changes are documented

@KARTIKrocks KARTIKrocks self-assigned this Mar 31, 2026
@KARTIKrocks KARTIKrocks merged commit 4851dcf into main Mar 31, 2026
9 checks passed
@KARTIKrocks KARTIKrocks deleted the fix/dbx-atomic-default-conn branch March 31, 2026 01:11
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.

1 participant