8055008909
Summary: How it works: * GetUpdatesSince takes a SequenceNumber. * A LogFile with the first SequenceNumber nearest and lesser than the requested Sequence Number is found. * Seek in the logFile till the requested SeqNumber is found. * Return an iterator which contains logic to return record's one by one. Test Plan: * Test case included to check the good code path. * Will update with more test-cases. * Feedback required on test-cases. Reviewers: dhruba, emayanke Reviewed By: dhruba CC: leveldb Differential Revision: https://reviews.facebook.net/D7119
15 lines
317 B
C++
15 lines
317 B
C++
#ifndef STORAGE_LEVELDB_INCLUDE_TYPES_H_
|
|
#define STORAGE_LEVELDB_INCLUDE_TYPES_H_
|
|
|
|
#include <stdint.h>
|
|
|
|
namespace leveldb {
|
|
|
|
// Define all public custom types here.
|
|
|
|
// Represents a sequence number in a WAL file.
|
|
typedef uint64_t SequenceNumber;
|
|
|
|
} // namespace leveldb
|
|
#endif // STORAGE_LEVELDB_INCLUDE_TYPES_H_
|