]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Do not _require_ anchor/updateCollapsed() re-implementation.
authorAlex Rousskov <rousskov@measurement-factory.com>
Wed, 18 Nov 2015 20:03:55 +0000 (13:03 -0700)
committerAlex Rousskov <rousskov@measurement-factory.com>
Wed, 18 Nov 2015 20:03:55 +0000 (13:03 -0700)
Also do not override Controlled methods that Disk is not going to
provide because doing so will complicate changing or deleting those
methods later as we revise the APIs.

src/store/Disk.h
src/tests/stub_SwapDir.cc

index 4e7f94cf199ae4e443f763cf64d0b5d11d4d31c6..8445418d38b51852716a03255dbe398b45b27478 100644 (file)
@@ -45,22 +45,15 @@ public:
 
     /* Controlled API */
     virtual void create() override;
-    virtual void init() override = 0;
     virtual StoreEntry *get(const cache_key *) override;
     virtual uint64_t maxSize() const override { return max_size; }
     virtual uint64_t minSize() const override;
-    virtual uint64_t currentSize() const override = 0;
-    virtual uint64_t currentCount() const override = 0;
     virtual int64_t maxObjectSize() const override;
     virtual void getStats(StoreInfoStats &stats) const override;
     virtual void stat(StoreEntry &) const override;
     virtual void reference(StoreEntry &e) override;
     virtual bool dereference(StoreEntry &e) override;
     virtual void maintain() override;
-    virtual bool anchorCollapsed(StoreEntry &e, bool &inSync) override = 0;
-    virtual bool updateCollapsed(StoreEntry &e) override = 0;
-    virtual void markForUnlink(StoreEntry &) override = 0;
-    virtual void unlink(StoreEntry &) override = 0;
 
     /// configure the maximum object size for this storage area.
     /// May be any size up to the total storage area.
index 0515d347d35814137e06fafa917ba9d3bc664a30..d7f309290abc0a544a6f3827a3f5915562501ea0 100644 (file)
@@ -9,7 +9,7 @@
 #include "squid.h"
 #include "store/Disk.h"
 
-#define STUB_API "SwapDir.cc"
+#define STUB_API "store/Disk.cc"
 #include "tests/STUB.h"
 
 // SwapDir::SwapDir(char const *) STUB
@@ -17,7 +17,6 @@
 void SwapDir::create() STUB
 void SwapDir::dump(StoreEntry &) const STUB
 bool SwapDir::doubleCheck(StoreEntry &) STUB_RETVAL(false)
-void SwapDir::unlink(StoreEntry &) STUB
 void SwapDir::getStats(StoreInfoStats &) const STUB
 void SwapDir::stat(StoreEntry &) const STUB
 void SwapDir::statfs(StoreEntry &)const STUB