diff --git a/HISTORY.md b/HISTORY.md index 99338cba5..3b4d5aac0 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -29,6 +29,7 @@ * Remove default implementation of Name() from FileSystemWrapper. * Rename `SizeApproximationOptions.include_memtabtles` to `SizeApproximationOptions.include_memtables`. * Remove deprecated option DBOptions::max_mem_compaction_level. +* Remove deprecated overloads of API DB::GetApproximateSizes. ### Behavior Changes * Disallow the combination of DBOptions.use_direct_io_for_flush_and_compaction == true and DBOptions.writable_file_max_buffer_size == 0. This combination can cause WritableFileWriter::Append() to loop forever, and it does not make much sense in direct IO. diff --git a/include/rocksdb/db.h b/include/rocksdb/db.h index d721d70f7..c6bcf2bad 100644 --- a/include/rocksdb/db.h +++ b/include/rocksdb/db.h @@ -1164,25 +1164,6 @@ class DB { GetApproximateMemTableStats(DefaultColumnFamily(), range, count, size); } - // Deprecated versions of GetApproximateSizes - ROCKSDB_DEPRECATED_FUNC virtual void GetApproximateSizes( - const Range* range, int n, uint64_t* sizes, bool include_memtable) { - uint8_t include_flags = SizeApproximationFlags::INCLUDE_FILES; - if (include_memtable) { - include_flags |= SizeApproximationFlags::INCLUDE_MEMTABLES; - } - GetApproximateSizes(DefaultColumnFamily(), range, n, sizes, include_flags); - } - ROCKSDB_DEPRECATED_FUNC virtual void GetApproximateSizes( - ColumnFamilyHandle* column_family, const Range* range, int n, - uint64_t* sizes, bool include_memtable) { - uint8_t include_flags = SizeApproximationFlags::INCLUDE_FILES; - if (include_memtable) { - include_flags |= SizeApproximationFlags::INCLUDE_MEMTABLES; - } - GetApproximateSizes(column_family, range, n, sizes, include_flags); - } - // Compact the underlying storage for the key range [*begin,*end]. // The actual compaction interval might be superset of [*begin, *end]. // In particular, deleted and overwritten versions are discarded,