From 2dc63c891170a15c672ef16390db73982c7ae975 Mon Sep 17 00:00:00 2001 From: Yu Zhang Date: Fri, 6 Oct 2023 10:34:44 -0700 Subject: [PATCH] =?UTF-8?q?Add=20the=20default=20WritableFile::GetFileSize?= =?UTF-8?q?=20implementation=20back=20for=20com=E2=80=A6=20(#11927)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Summary: As mentioned in https://github.com/facebook/rocksdb/issues/11726, we should defer user feasible API changes to major release. Pull Request resolved: https://github.com/facebook/rocksdb/pull/11927 Reviewed By: anand1976 Differential Revision: D50016723 Pulled By: jowlyzhang fbshipit-source-id: 59781442602fadb9906e37aad2021e3178723db5 --- include/rocksdb/env.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/rocksdb/env.h b/include/rocksdb/env.h index 7828a31ebd..08f996658d 100644 --- a/include/rocksdb/env.h +++ b/include/rocksdb/env.h @@ -1001,7 +1001,7 @@ class WritableFile { /* * Get the size of valid data in the file. */ - virtual uint64_t GetFileSize() = 0; + virtual uint64_t GetFileSize() { return 0; }; /* * Get and set the default pre-allocation block size for writes to