]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fixed parsing diskd cache_dir Q1 and Q2 options
authorwessels <>
Thu, 12 Apr 2007 03:22:27 +0000 (03:22 +0000)
committerwessels <>
Thu, 12 Apr 2007 03:22:27 +0000 (03:22 +0000)
UFSSwapDir::getOptionTree() was calling the DiskdIOStrategy::getOptionTree()
method, but was not using its return value.

src/fs/ufs/store_dir_ufs.cc

index 4d600e6a04c2ab8c665b911b833d7a8bcd63d140..51140139a7bc814b605813608720ea7b2995b7b6 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: store_dir_ufs.cc,v 1.77 2006/10/02 01:31:59 adrian Exp $
+ * $Id: store_dir_ufs.cc,v 1.78 2007/04/11 21:22:27 wessels Exp $
  *
  * DEBUG: section 47    Store Directory Routines
  * AUTHOR: Duane Wessels
@@ -196,11 +196,7 @@ UFSSwapDir::getOptionTree() const
 
     currentIOOptions->options.push_back(new ConfigOptionAdapter<UFSSwapDir>(*const_cast<UFSSwapDir *>(this), &UFSSwapDir::optionIOParse, &UFSSwapDir::optionIODump));
 
-    ConfigOption *ioOptions = NULL;
-    
-    IO->io->getOptionTree();
-
-    if (ioOptions)
+    if (ConfigOption *ioOptions = IO->io->getOptionTree())
         currentIOOptions->options.push_back(ioOptions);
 
     ConfigOption* result = currentIOOptions;