leo-project / leo_backend_db

leo_backend_db is a wrapper library for Basho bitcask, Basho eleveldb and Erlang ETS. They are used as local KVS in LeoFS.
http://leo-project.net/leofs
Apache License 2.0
10 stars 8 forks source link

Add status_compaction callbacks for #671 #7

Closed mocchira closed 7 years ago

mocchira commented 7 years ago

Enable to retrieve compaction related info like below.

(storage_0@127.0.0.1)14> [B] = leo_backend_db_api:status_compaction(leo_metadata_0).
<""
Compactions
Level  Files Size(MB) Time(sec) Read(MB) Write(MB)
------------------------------------------------------
0        2       10         0        0        10
1        1        0         0        0         0
2        1        0         0        0         0
">>
yosukehara commented 7 years ago

@mocchira I've just reviewed your PR, LGTM.