diff --git a/include/rocksdb/env.h b/include/rocksdb/env.h index cda120e84..262bc24ca 100644 --- a/include/rocksdb/env.h +++ b/include/rocksdb/env.h @@ -936,7 +936,7 @@ class WritableFile { // size due to whole pages writes. The behavior is undefined if called // with other writes to follow. virtual Status Truncate(uint64_t /*size*/) { return Status::OK(); } - virtual Status Close() = 0; + virtual Status Close() { return Status::NotSupported("Close"); } virtual Status Flush() = 0; virtual Status Sync() = 0; // sync data diff --git a/include/rocksdb/file_system.h b/include/rocksdb/file_system.h index 6eab0d84e..9006921b4 100644 --- a/include/rocksdb/file_system.h +++ b/include/rocksdb/file_system.h @@ -1021,7 +1021,10 @@ class FSWritableFile { IODebugContext* /*dbg*/) { return IOStatus::OK(); } - virtual IOStatus Close(const IOOptions& options, IODebugContext* dbg) = 0; + virtual IOStatus Close(const IOOptions& /*options*/, + IODebugContext* /*dbg*/) { + return IOStatus::NotSupported("Close"); + } virtual IOStatus Flush(const IOOptions& options, IODebugContext* dbg) = 0; virtual IOStatus Sync(const IOOptions& options, IODebugContext* dbg) = 0; // sync data