]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Polish: call maxObjectSze virtual in SwapDir.
authorAmos Jeffries <squid3@treenet.co.nz>
Sat, 9 Feb 2013 05:16:04 +0000 (22:16 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Sat, 9 Feb 2013 05:16:04 +0000 (22:16 -0700)
Say "virtual" explicitly in this
case to remind us that maxObjectSize() is a part of the [semi-broken]
Store API and not some SwapDir "own" method. This will help us when we
polish the API to remove the common Store root.

src/SwapDir.h

index b87b624e1752d5ee6079c87ca354b86eafe92d02..f779df8209bc12906c5721e8e24d5adc1c65f9e7 100644 (file)
@@ -150,7 +150,7 @@ public:
 
     /// The maximum size of object which may be stored here.
     /// Larger objects will not be added and may be purged.
-    int64_t maxObjectSize() const;
+    virtual int64_t maxObjectSize() const;
 
     /// configure the maximum object size for this storage area.
     /// May be any size up to the total storage area.