[Databuckets] Fix issue with expired databuckets not being expired and returned properly (#3504)

This commit is contained in:
Chris Miles authored and GitHub committed 2023-07-18 17:18:36 -05:00
1 parent fb3159b657
commit 4c2f9a4423
5 files changed
+35 -57

No files matched your search

+3 -3
View File
@@ -8062,9 +8062,9 @@ std::string Mob::GetBucket(std::string bucket_name)
DataBucketKey k = GetScopedBucketKeys();
k.key = bucket_name;
std::string bucket_value = DataBucket::GetData(k);
if (!bucket_value.empty()) {
return bucket_value;
auto b = DataBucket::GetData(k);
if (!b.value.empty()) {
return b.value;
}
return {};
}