Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MB-32670 [3/5]: Enhance BGFetcher to support fetching compressed values
Update the BGFetcher and KVStore::getMulti code to request that an item is fetched in compressed form if possible, by expanding the current boolean GetMetaOnly parameter to a ValueFilter ternary: KEYS_ONLY, VALUE_COMPRESSED or VALUE_DECOMPRESSED. Encapsulate the vb_bgfetch_item_ctx_t class so the logic of selecting the filter for a given key is handled by the class itself - also remove unnecessary logic which was setting the value / status of a bgFetch through the `value` pointer multiple times. Note this functionality is currently unused in the front-end - bgFetches for value currently only still uses VALUES_DECOMPRESSED. Change-Id: I3d7b3ab1b09e1caab407051f7265ead47e20d245 Reviewed-on: http://review.couchbase.org/c/kv_engine/+/141352 Reviewed-by: Trond Norbye <trond.norbye@couchbase.com> Tested-by: Build Bot <build@couchbase.com>
- Loading branch information
Showing
15 changed files
with
280 additions
and
124 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
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
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
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
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
Oops, something went wrong.