summaryrefslogtreecommitdiff
path: root/util/env_posix.cc
diff options
context:
space:
mode:
authordgrogan@chromium.org <dgrogan@chromium.org@62dab493-f737-651d-591e-8d6aee1b9529>2011-05-21 02:17:43 +0000
committerdgrogan@chromium.org <dgrogan@chromium.org@62dab493-f737-651d-591e-8d6aee1b9529>2011-05-21 02:17:43 +0000
commitda7990950787257cb312ca562ce5977749afc3e9 (patch)
tree91fe98f6e14e74c794392b22105a47a58499edff /util/env_posix.cc
parent3c111335a760d8d82414b91a54f740df09dd4f8f (diff)
downloadleveldb-da7990950787257cb312ca562ce5977749afc3e9.tar.gz
sync with upstream @ 21409451
Check the NEWS file for details of what changed. git-svn-id: https://leveldb.googlecode.com/svn/trunk@28 62dab493-f737-651d-591e-8d6aee1b9529
Diffstat (limited to 'util/env_posix.cc')
-rw-r--r--util/env_posix.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/util/env_posix.cc b/util/env_posix.cc
index 5cddb0c..fec1599 100644
--- a/util/env_posix.cc
+++ b/util/env_posix.cc
@@ -52,6 +52,13 @@ class PosixSequentialFile: public SequentialFile {
}
return s;
}
+
+ virtual Status Skip(uint64_t n) {
+ if (fseek(file_, n, SEEK_CUR)) {
+ return Status::IOError(filename_, strerror(errno));
+ }
+ return Status::OK();
+ }
};
class PosixRandomAccessFile: public RandomAccessFile {