Merge pull request #3302 from sfc-gh-anoyes/anoyes/fix-watch-counting

Don't double count watches for too_many_watches
This commit is contained in:
Evan Tschannen 2020-06-10 10:40:11 -07:00 committed by GitHub
commit f72d0a6a35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 1 deletions

View File

@ -2364,7 +2364,6 @@ void Watch::setWatch(Future<Void> watchFuture) {
//FIXME: This seems pretty horrible. Now a Database can't die until all of its watches do...
ACTOR Future<Void> watch(Reference<Watch> watch, Database cx, TagSet tags, TransactionInfo info) {
cx->addWatch();
try {
choose {
// RYOW write to value that is being watched (if applicable)