-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify TRACE logging in MagmaKVStore::compactionCallBack()
Before this patch trace logging in MagmaKVStore::compactionCallBack() was fairly complex using a reusable std::stringstream stored in MagmaKVStore::MagmaCompactionCB. Instead introduce a string inside the MagmaKVStore::compactionCallBack(), which can be used to store the formatted sanitized key and meta data. These means we'll only ever allocate one string when not using TRACE level logging meaning we only use 8 bytes instead of 368. Then when we're using TRACE level logging we're still only generating one string per call to MagmaKVStore::compactionCallBack(). Change-Id: Ibf7924ab2f383ca02096e8a61044958f0e0d80d9 Reviewed-on: http://review.couchbase.org/c/kv_engine/+/160181 Reviewed-by: Dave Rigby <daver@couchbase.com> Tested-by: Build Bot <build@couchbase.com>
- Loading branch information
Showing
2 changed files
with
14 additions
and
23 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