move flush memtable logic when learning into rocksdb
move flush memtable logic when learning into rocksdb

imzhenyu/rDSN.dist.service,imzhenyu/rDSN.dist.service,imzhenyu/rDSN.dist.service,imzhenyu/rDSN.dist.service