Ejemplo n.º 1
0
// Compact forces compaction on the database.
func (r *RocksDB) Compact() error {
	return statusToError(C.DBCompact(r.rdb))
}
Ejemplo n.º 2
0
// Compact forces compaction on the database. This is currently used only to
// force partial merges to occur in unit tests.
func (r *RocksDB) Compact() {
	err := statusToError(C.DBCompact(r.rdb))
	if err != nil {
		log.Warningf("compact: %s", err)
	}
}