Fix formatting and unrelated windows build issue

This commit is contained in:
A.J. Beamon 2023-05-11 08:52:20 -07:00
parent d8141c049d
commit b15622c492
2 changed files with 7 additions and 7 deletions

View File

@ -213,7 +213,7 @@ public:
void update(Transaction tr, AddConflictRange conflict = AddConflictRange::False) { void update(Transaction tr, AddConflictRange conflict = AddConflictRange::False) {
std::array<uint8_t, 14> value; std::array<uint8_t, 14> value;
value.fill(0); value.fill(0);
tr->atomicOp(key, StringRef(value.begin(), value.size()), MutationRef::SetVersionstampedValue); tr->atomicOp(key, StringRef(value.data(), value.size()), MutationRef::SetVersionstampedValue);
if (conflict) { if (conflict) {
tr->addReadConflictRange(singleKeyRange(key)); tr->addReadConflictRange(singleKeyRange(key));
} }

View File

@ -303,9 +303,9 @@ public:
Future<RangeResult> getRange(ReadYourWritesTransaction* ryw, Future<RangeResult> getRange(ReadYourWritesTransaction* ryw,
KeyRangeRef kr, KeyRangeRef kr,
GetRangeLimits limitsHint) const override; GetRangeLimits limitsHint) const override;
bool supportsTenants() const override { bool supportsTenants() const override {
CODE_PROBE(true, "Accessing conflicting keys in tenant"); CODE_PROBE(true, "Accessing conflicting keys in tenant");
return true; return true;
}; };
}; };
@ -315,9 +315,9 @@ public:
Future<RangeResult> getRange(ReadYourWritesTransaction* ryw, Future<RangeResult> getRange(ReadYourWritesTransaction* ryw,
KeyRangeRef kr, KeyRangeRef kr,
GetRangeLimits limitsHint) const override; GetRangeLimits limitsHint) const override;
bool supportsTenants() const override { bool supportsTenants() const override {
CODE_PROBE(true, "Accessing read conflict ranges in tenant"); CODE_PROBE(true, "Accessing read conflict ranges in tenant");
return true; return true;
}; };
}; };
@ -327,9 +327,9 @@ public:
Future<RangeResult> getRange(ReadYourWritesTransaction* ryw, Future<RangeResult> getRange(ReadYourWritesTransaction* ryw,
KeyRangeRef kr, KeyRangeRef kr,
GetRangeLimits limitsHint) const override; GetRangeLimits limitsHint) const override;
bool supportsTenants() const override { bool supportsTenants() const override {
CODE_PROBE(true, "Accessing write conflict ranges in tenant"); CODE_PROBE(true, "Accessing write conflict ranges in tenant");
return true; return true;
}; };
}; };