aboutsummaryrefslogtreecommitdiff
path: root/src/leveldb/include
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2018-02-16 09:01:35 -0500
committerMarcoFalke <falke.marco@gmail.com>2018-02-16 08:59:28 -0500
commitfaa6dd27b1f1f96f5e1a26e830e1a80255afdb5f (patch)
treeac28ac960c3a60cfa750bf86d095ef01e0f72280 /src/leveldb/include
parent13e31dd6548d64a5992f439e74bb424bf88aca04 (diff)
parent835a21b42402d546bd72f8a3f452f0c743fefe82 (diff)
Bump leveldb subtree
Diffstat (limited to 'src/leveldb/include')
-rw-r--r--src/leveldb/include/leveldb/env.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/leveldb/include/leveldb/env.h b/src/leveldb/include/leveldb/env.h
index 99b6c21414..275d441eae 100644
--- a/src/leveldb/include/leveldb/env.h
+++ b/src/leveldb/include/leveldb/env.h
@@ -191,6 +191,9 @@ class SequentialFile {
// REQUIRES: External synchronization
virtual Status Skip(uint64_t n) = 0;
+ // Get a name for the file, only for error reporting
+ virtual std::string GetName() const = 0;
+
private:
// No copying allowed
SequentialFile(const SequentialFile&);
@@ -215,6 +218,9 @@ class RandomAccessFile {
virtual Status Read(uint64_t offset, size_t n, Slice* result,
char* scratch) const = 0;
+ // Get a name for the file, only for error reporting
+ virtual std::string GetName() const = 0;
+
private:
// No copying allowed
RandomAccessFile(const RandomAccessFile&);
@@ -234,6 +240,9 @@ class WritableFile {
virtual Status Flush() = 0;
virtual Status Sync() = 0;
+ // Get a name for the file, only for error reporting
+ virtual std::string GetName() const = 0;
+
private:
// No copying allowed
WritableFile(const WritableFile&);