In much of our column_families APIs, we need to pass a pointer to the database. The only reason we do that, is so we can properly handle the commit log entries after we seal the current memtables into sstables. Now that we store a pointer to the commit log in the CF itself at the time it is created, we no longer have to do it. As a result, the APIs are a lot cleaner, with no gratuitous parameters. My motivation for this was the flush method, but as a result, apply() also gets cleaner. Signed-off-by: Glauber Costa <glommer@cloudius-systems.com>
40 KiB
40 KiB