• N
    Add read/modify/write functionality to Put() api · 8454cfe5
    Naman Gupta 提交于
    Summary: The application can set a callback function, which is applied on the previous value. And calculates the new value. This new value can be set, either inplace, if the previous value existed in memtable, and new value is smaller than previous value. Otherwise the new value is added normally.
    
    Test Plan: fbmake. Added unit tests. All unit tests pass.
    
    Reviewers: dhruba, haobo
    
    Reviewed By: haobo
    
    CC: sdong, kailiu, xinyaohu, sumeet, leveldb
    
    Differential Revision: https://reviews.facebook.net/D14745
    8454cfe5
memtable.h 6.9 KB