Ported over to rocksdb.