Remove unnecessary error thrown when calling clear range on the lock special key range
This commit is contained in:
parent
9dd67bedaa
commit
76440018fb
|
@ -1152,10 +1152,6 @@ Future<Standalone<RangeResultRef>> LockDatabaseImpl::getRange(ReadYourWritesTran
|
|||
}
|
||||
}
|
||||
|
||||
void LockDatabaseImpl::clear(ReadYourWritesTransaction* ryw, const KeyRangeRef& range) {
|
||||
return throwSpecialKeyApiFailure(ryw, "unlock", "Please call clear on the special key to unlock the database");
|
||||
}
|
||||
|
||||
ACTOR Future<Optional<std::string>> lockDatabaseCommitActor(ReadYourWritesTransaction* ryw) {
|
||||
state Optional<std::string> msg;
|
||||
ryw->getTransaction().setOption(FDBTransactionOptions::LOCK_AWARE);
|
||||
|
|
|
@ -309,7 +309,6 @@ class LockDatabaseImpl : public SpecialKeyRangeRWImpl {
|
|||
public:
|
||||
explicit LockDatabaseImpl(KeyRangeRef kr);
|
||||
Future<Standalone<RangeResultRef>> getRange(ReadYourWritesTransaction* ryw, KeyRangeRef kr) const override;
|
||||
void clear(ReadYourWritesTransaction* ryw, const KeyRangeRef& range) override;
|
||||
Future<Optional<std::string>> commit(ReadYourWritesTransaction* ryw) override;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue