From ae522f930d69c5b80c13cd6596919d57ea971b88 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 6 Oct 2016 16:34:14 +0200 Subject: [PATCH] Fix getS3Stats() --- src/libstore/s3-binary-cache-store.cc | 2 +- src/libstore/s3-binary-cache-store.hh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libstore/s3-binary-cache-store.cc b/src/libstore/s3-binary-cache-store.cc index 91ec3643b..c11f2b06b 100644 --- a/src/libstore/s3-binary-cache-store.cc +++ b/src/libstore/s3-binary-cache-store.cc @@ -99,7 +99,7 @@ struct S3BinaryCacheStoreImpl : public S3BinaryCacheStore } } - const Stats & getS3Stats() + const Stats & getS3Stats() override { return stats; } diff --git a/src/libstore/s3-binary-cache-store.hh b/src/libstore/s3-binary-cache-store.hh index 79ab72e5a..4d43fe4d2 100644 --- a/src/libstore/s3-binary-cache-store.hh +++ b/src/libstore/s3-binary-cache-store.hh @@ -27,7 +27,7 @@ public: std::atomic head{0}; }; - const Stats & getS3Stats(); + virtual const Stats & getS3Stats() = 0; }; }