-
Notifications
You must be signed in to change notification settings - Fork 312
write generated export padding to the database, ensure overlapping ex… #1119
Conversation
…ports contain same data
ready to review but putting a |
// MultiLock obtains multiple locks in a single transaction. Either all locks are obtained, or | ||
// the transaction is rolled back. | ||
// The lockIDs are sorted by normal ascending string sort order before obtaining the locks. | ||
func (db *DB) MultiLock(ctx context.Context, lockIDs []string, ttl time.Duration) (UnlockFn, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this so we can lock across multiple tables? It's unclear to me why we don't just use a transaction instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added comments to worker.go where we take the locks
/cancel hold |
/unhold |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/hold
in case you have some other tweaks
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mikehelmick, sethvargo The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/hold cancel nope - this is good to go |
…ports contain same data
Proposed Changes
Release Note