We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dff839c commit 390345fCopy full SHA for 390345f
1 file changed
db.go
@@ -778,8 +778,8 @@ func (d *DB) Apply(batch *Batch, opts *WriteOptions) error {
778
// EXPERIMENTAL: API/feature subject to change. Do not yet use outside
779
// CockroachDB.
780
func (d *DB) ApplyNoSyncWait(batch *Batch, opts *WriteOptions) error {
781
- if !opts.Sync {
782
- return errors.Errorf("cannot request asynchonous apply when WriteOptions.Sync is false")
+ if !opts.GetSync() {
+ return errors.Errorf("cannot request asynchronous apply when WriteOptions.Sync is false")
783
}
784
return d.applyInternal(batch, opts, true)
785
0 commit comments