added a yield to getMore()

This commit is contained in:
Evan Tschannen 2018-07-12 16:27:27 -07:00
parent 7b64e711c7
commit d47aae27f3
1 changed files with 2 additions and 0 deletions

View File

@ -977,6 +977,8 @@ ACTOR Future<Void> bufferedGetMore( ILogSystem::BufferedCursor* self, int taskID
throw internal_error();
}
Void _ = wait(yield());
state Version targetVersion = std::min(self->end, self->messageVersion.version + SERVER_KNOBS->VERSIONS_PER_BATCH);
self->messages.clear();