//------------------------------------------------------------------------------ // test driver used to test reloadable cache enhancement to we_config // for bug 4486 // $Id$ //------------------------------------------------------------------------------ #include #include #include #include "we_config.h" using namespace WriteEngine; void test() { std::cout << "getDBRootByIdx(1): " << Config::getDBRootByIdx(1) << std::endl; std::cout << "getDBRootByIdx(3): " << Config::getDBRootByIdx(3) << std::endl; std::cout << "getDBRootByNum(1): " << Config::getDBRootByNum(1) << std::endl; std::cout << "getDBRootByNum(3): " << Config::getDBRootByNum(3) << std::endl; std::vector dbRootIds; Config::getRootIdList( dbRootIds ); std::cout << "getRootIdList: "; for (unsigned k=0; k dbRootPathList; Config::getDBRootPathList( dbRootPathList ); std::cout << "getDBRootPathList: " << std::endl; for (unsigned k=0; k> resp; std::cout << std::endl; if (resp == 'c') { std::cout << "Has local DBRootList changed: " << (bool)Config::hasLocalDBRootListChanged() << std::endl; } else if (resp == 'q') { break; } nTest++; } return 0; }