Skip to content

Commit 98f2fd3

Browse files
fixing copy constructor error and adding test for it
1 parent dbcab0b commit 98f2fd3

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

fdbclient/include/fdbclient/BlobMetadataUtils.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,13 @@ struct BlobMetadataDetailsRef {
5656

5757
explicit BlobMetadataDetailsRef(Arena& ar,
5858
BlobMetadataDomainId domainId,
59-
Optional<StringRef> base,
59+
Optional<StringRef> baseLocation,
6060
VectorRef<StringRef> partitions,
6161
double refreshAt,
6262
double expireAt)
6363
: domainId(domainId), partitions(ar, partitions), refreshAt(refreshAt), expireAt(expireAt) {
64-
if (base.present()) {
65-
base = StringRef(ar, base.get());
64+
if (baseLocation.present()) {
65+
base = StringRef(ar, baseLocation.get());
6666
}
6767
}
6868

fdbserver/RESTKmsConnector.actor.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1539,6 +1539,7 @@ void testGetBlobMetadataRequestBody(Reference<RESTKmsConnectorCtx> ctx) {
15391539
for (const auto& detail : details) {
15401540
auto it = domainIds.find(detail.domainId);
15411541
ASSERT(it != domainIds.end());
1542+
ASSERT(detail.base.present() || !detail.partitions.empty());
15421543
}
15431544
if (refreshKmsUrls) {
15441545
validateKmsUrls(ctx);

0 commit comments

Comments
 (0)