]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/commit
Summary:
authorAndrey Zagrebin <azagrebin@gmail.com>
Thu, 16 Aug 2018 17:44:09 +0000 (10:44 -0700)
committerYanqin Jin <yanqin@fb.com>
Tue, 21 Aug 2018 23:53:02 +0000 (16:53 -0700)
commit6a5e8486b6eea8dd192807d2e0eeb43fadb2f009
treeb6bc4885e841999eb4885301ec61a8cc3bf823b2
parent940641c3cc98cdea3ea4005a665f681d8510568f
Summary:
This PR addresses issue #3865 and implements the following approach to fix it:
 - adds `MergeContext::GetOperandsDirectionForward` and `MergeContext::GetOperandsDirectionBackward` to query merge operands in a specific order
 - `MergeContext::GetOperands` becomes a shortcut for `MergeContext::GetOperandsDirectionForward`
 - pass `MergeContext::GetOperandsDirectionBackward` to `MergeOperator::ShouldMerge` and document the order
Pull Request resolved: https://github.com/facebook/rocksdb/pull/4266

Differential Revision: D9360750

Pulled By: sagar0

fbshipit-source-id: 20cb73ff017760b062ecdcf4382560767086e092
HISTORY.md
db/memtable.cc
db/merge_context.h
include/rocksdb/merge_operator.h