improve comment for WalManager (#5350)
Summary: att Pull Request resolved: https://github.com/facebook/rocksdb/pull/5350 Differential Revision: D15496467 Pulled By: miasantreble fbshipit-source-id: c29c0b143bf4df2040695a82be0feb9814ddb641
This commit is contained in:
parent
94c78b11e4
commit
88ff80780b
@ -28,6 +28,10 @@
|
|||||||
namespace rocksdb {
|
namespace rocksdb {
|
||||||
|
|
||||||
#ifndef ROCKSDB_LITE
|
#ifndef ROCKSDB_LITE
|
||||||
|
|
||||||
|
// WAL manager provides the abstraction for reading the WAL files as a single
|
||||||
|
// unit. Internally, it opens and reads the files using Reader or Writer
|
||||||
|
// abstraction.
|
||||||
class WalManager {
|
class WalManager {
|
||||||
public:
|
public:
|
||||||
WalManager(const ImmutableDBOptions& db_options,
|
WalManager(const ImmutableDBOptions& db_options,
|
||||||
@ -40,6 +44,8 @@ class WalManager {
|
|||||||
|
|
||||||
Status GetSortedWalFiles(VectorLogPtr& files);
|
Status GetSortedWalFiles(VectorLogPtr& files);
|
||||||
|
|
||||||
|
// Allow user to tail transaction log to find all recent changes to the
|
||||||
|
// database that are newer than `seq_number`.
|
||||||
Status GetUpdatesSince(
|
Status GetUpdatesSince(
|
||||||
SequenceNumber seq_number, std::unique_ptr<TransactionLogIterator>* iter,
|
SequenceNumber seq_number, std::unique_ptr<TransactionLogIterator>* iter,
|
||||||
const TransactionLogIterator::ReadOptions& read_options,
|
const TransactionLogIterator::ReadOptions& read_options,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user