MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / GetBaseBucket

Function GetBaseBucket

base/bucket.go:80–85  ·  view source on GitHub ↗

GetBaseBucket returns the lowest level non-wrapping bucket wrapped by one or more WrappingBuckets

(b Bucket)

Source from the content-addressed store, hash-verified

78
79// GetBaseBucket returns the lowest level non-wrapping bucket wrapped by one or more WrappingBuckets
80func GetBaseBucket(b Bucket) Bucket {
81 if wb, ok := b.(WrappingBucket); ok {
82 return GetBaseBucket(wb.GetUnderlyingBucket())
83 }
84 return b
85}
86
87// GetBaseDataStore returns the lowest level non-wrapping datastore wrapped by one or more WrappingBuckets
88func GetBaseDataStore(ds DataStore) DataStore {

Callers 5

NewXDCRFunction · 0.92
handleFlushMethod · 0.92
TestBaseBucketFunction · 0.85
AsGocbV2BucketFunction · 0.85
AsCouchbaseBucketStoreFunction · 0.85

Calls 1

GetUnderlyingBucketMethod · 0.65

Tested by 1

TestBaseBucketFunction · 0.68