Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MB-35297: Fix "RangeScan::setStateIdle invalid state:State::Cancelled"
The continue "self-cancelling" code is relying on the cancel being detected in a key/value callback. If the scan has no data, no callback and the code attempts to move from cancel to idle (invalid). Add a check for cancel before calling into KVStore::scan Change-Id: I4ecfd42cd57770883b18b63035b2a5dc500e5696 Reviewed-on: https://review.couchbase.org/c/kv_engine/+/174585 Tested-by: Build Bot <build@couchbase.com> Reviewed-by: Trond Norbye <trond.norbye@couchbase.com>
- Loading branch information
1 parent
a096e9f
commit b9207d2
Showing
2 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters