Esempio n. 1
0
// Compact forces compaction on the database.
func (r *RocksDB) Compact() error {
	return statusToError(C.DBCompact(r.rdb))
}
Esempio 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)
	}
}