Remove unnecessary error thrown when calling clear range on the lock special key range

This commit is contained in:
Chaoguang Lin 2020-10-08 21:39:13 -07:00
parent 9dd67bedaa
commit 76440018fb
2 changed files with 0 additions and 5 deletions

View File

@ -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);

View File

@ -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;
};