]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Implemented the second Store::get() API to make ICC compiler happier.
authorAlex Rousskov <rousskov@measurement-factory.com>
Wed, 14 Sep 2011 16:34:40 +0000 (10:34 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Wed, 14 Sep 2011 16:34:40 +0000 (10:34 -0600)
TODO: Remove this second Store::get() member as unused, undocumented, and
inefficient?

src/fs/rock/RockSwapDir.cc
src/fs/rock/RockSwapDir.h

index f1e3daf79cc9176b31423a097c73e11250850368..898e0099f2d635dc48617745c45e1fd7fef18cf2 100644 (file)
@@ -41,6 +41,12 @@ Rock::SwapDir::search(String const url, HttpRequest *)
     return NULL; // XXX: implement
 }
 
+void
+Rock::SwapDir::get(String const key, STOREGETCLIENT cb, void *data)
+{
+    ::SwapDir::get(key, cb, data);
+}
+
 // called when Squid core needs a StoreEntry with a given key
 StoreEntry *
 Rock::SwapDir::get(const cache_key *key)
index 08895d513897eba9ec2d4b75c5298c08492ac597..a39eaf9ed91f95e69e7911e891547d3a6af9b57a 100644 (file)
@@ -27,6 +27,7 @@ public:
     virtual void reconfigure(int, char *);
     virtual StoreSearch *search(String const url, HttpRequest *);
     virtual StoreEntry *get(const cache_key *key);
+    virtual void get(String const, STOREGETCLIENT, void * cbdata);
     virtual void disconnect(StoreEntry &e);
     virtual uint64_t currentSize() const;
     virtual uint64_t currentCount() const;