(ctx context.Context, location, key string, cas uint64)
| 365 | } |
| 366 | |
| 367 | func (cc *CouchbaseCluster) DeleteMetadataDocument(ctx context.Context, location, key string, cas uint64) (err error) { |
| 368 | if cc == nil { |
| 369 | return errors.New("nil CouchbaseCluster") |
| 370 | } |
| 371 | |
| 372 | b, teardown, err := cc.getBucket(ctx, location) |
| 373 | if err != nil { |
| 374 | return err |
| 375 | } |
| 376 | defer teardown() |
| 377 | |
| 378 | _, removeErr := cc.configPersistence.removeRawConfig(b.DefaultCollection(), key, gocb.Cas(cas)) |
| 379 | return removeErr |
| 380 | } |
| 381 | |
| 382 | // UpdateMetadataDocument retries on CAS mismatch |
| 383 | func (cc *CouchbaseCluster) UpdateMetadataDocument(ctx context.Context, location, docID string, updateCallback func(bucketConfig []byte, rawBucketConfigCas uint64) (newConfig []byte, err error)) (newCAS uint64, err error) { |
nothing calls this directly
no test coverage detected