mirror of
https://github.com/apple/foundationdb.git
synced 2025-06-02 03:12:12 +08:00
fixing copy constructor error and adding test for it (#9711)
This commit is contained in:
parent
dbcab0b1bd
commit
b4eb665f1d
@ -56,13 +56,13 @@ struct BlobMetadataDetailsRef {
|
||||
|
||||
explicit BlobMetadataDetailsRef(Arena& ar,
|
||||
BlobMetadataDomainId domainId,
|
||||
Optional<StringRef> base,
|
||||
Optional<StringRef> baseLocation,
|
||||
VectorRef<StringRef> partitions,
|
||||
double refreshAt,
|
||||
double expireAt)
|
||||
: domainId(domainId), partitions(ar, partitions), refreshAt(refreshAt), expireAt(expireAt) {
|
||||
if (base.present()) {
|
||||
base = StringRef(ar, base.get());
|
||||
if (baseLocation.present()) {
|
||||
base = StringRef(ar, baseLocation.get());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1539,6 +1539,7 @@ void testGetBlobMetadataRequestBody(Reference<RESTKmsConnectorCtx> ctx) {
|
||||
for (const auto& detail : details) {
|
||||
auto it = domainIds.find(detail.domainId);
|
||||
ASSERT(it != domainIds.end());
|
||||
ASSERT(detail.base.present() || !detail.partitions.empty());
|
||||
}
|
||||
if (refreshKmsUrls) {
|
||||
validateKmsUrls(ctx);
|
||||
|
Loading…
x
Reference in New Issue
Block a user