Documentation ¶
Overview ¶
Package replay implements facilities for replaying writes to a database.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
A DB is a wrapper around a Pebble database for replaying table-level writes to a database. It is not safe for concurrent access.
func Open ¶
Open opens a database for replaying flushed and ingested tables. It's intended for use by the `pebble bench compact` command.
func (*DB) Close ¶
Close closes a replay and the underlying database. If Close is called after Done, Close does nothing.
func (*DB) Done ¶
Done finishes a replay, returning the underlying database. All of the *replay.DB's methods except Close will error if called after Done.
func (*DB) FlushExternal ¶
FlushExternal simulates a flush of the table, linking it directly into level zero.
type Table ¶
type Table struct { Path string FileMetadata *manifest.FileMetadata }
Table describes a sstable from the reference database whose writes are being replayed.