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:
commit
f72d0a6a35
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue