Merge pull request #4359 from sfc-gh-nwijetunga/fix-client-watch-bug

Fix Client Watch Bug
This commit is contained in:
Markus Pilman 2021-02-18 17:39:17 -07:00 committed by GitHub
commit 7b173c5c30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -2250,6 +2250,8 @@ ACTOR Future<Void> watchStorageServerResp(KeyRef key, Database cx) {
} else if (metadata->watchPromise.getFutureReferenceCount() == 1) {
cx->deleteWatchMetadata(key);
return Void();
} else if (e.code() == error_code_future_version) {
continue;
}
cx->deleteWatchMetadata(key);
metadata->watchPromise.sendError(e);