22#include <drizzled/catalog/local.h>
23#include <drizzled/plugin/catalog.h>
24#include <boost/thread/once.hpp>
30static identifier::Catalog default_catalog(str_ref(
"LOCAL"));
31static catalog::Instance::shared_ptr _local_catalog;
33static boost::once_flag run_once= BOOST_ONCE_INIT;
37 _local_catalog= plugin::Catalog::getInstance(default_catalog);
40const identifier::Catalog& local_identifier()
42 return default_catalog;
45void resetPath_for_local_identifier()
53Instance::shared_ptr local()
55 boost::call_once(&init, run_once);
57 return _local_catalog;
TODO: Rename this file - func.h is stupid.