diff --git a/include/rocksdb/env.h b/include/rocksdb/env.h index cda120e8438edb3b1f8ba2b6d15cfaccdd91e77e..262bc24cada99d72da218e35f42d9c4b59dd75fa 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 6eab0d84eb0a37e89ce62c6e4b9c78516f1754e7..9006921b4564dd15ffb892b0213c993824ce02df 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