Fixing change feed durableFetchVersion not getting updated
This commit is contained in:
parent
90a870962d
commit
6adf119e3d
|
@ -4274,10 +4274,15 @@ ACTOR Future<Version> fetchChangeFeedApplier(StorageServer* data,
|
|||
remoteLoc++;
|
||||
}
|
||||
if (localVersion <= remoteVersion) {
|
||||
// Do this once per wait instead of once per version for efficiency
|
||||
data->fetchingChangeFeeds.insert(changeFeedInfo->id);
|
||||
Standalone<MutationsAndVersionRef> _localResult = waitNext(localResults.getFuture());
|
||||
localResult = _localResult;
|
||||
}
|
||||
}
|
||||
// Do this once per wait instead of once per version for efficiency
|
||||
data->fetchingChangeFeeds.insert(changeFeedInfo->id);
|
||||
|
||||
data->counters.feedBytesFetched += remoteResult.expectedSize();
|
||||
data->fetchKeysBytesBudget -= remoteResult.expectedSize();
|
||||
if (data->fetchKeysBytesBudget <= 0) {
|
||||
|
|
Loading…
Reference in New Issue