Comparison

core/storagemanager.lua @ 3661:f8879cee87a2

storagemanager: Return driver from load_driver() if successful
author Matthew Wild <mwild1@gmail.com>
date Sat, 27 Nov 2010 21:57:20 +0000
parent 3659:aa7bf12a5668
child 3662:dc3ccef7898f
comparison
equal deleted inserted replaced
3660:d50bf9f55ff9 3661:f8879cee87a2
42 end 42 end
43 local driver = stores_available:get(host, driver_name); 43 local driver = stores_available:get(host, driver_name);
44 if not driver then 44 if not driver then
45 if driver_name ~= "internal" then 45 if driver_name ~= "internal" then
46 modulemanager.load(host, "storage_"..driver_name); 46 modulemanager.load(host, "storage_"..driver_name);
47 return stores_available:get(host, driver_name);
47 else 48 else
48 return setmetatable({host = host}, default_driver_mt); 49 return setmetatable({host = host}, default_driver_mt);
49 end 50 end
50 end 51 end
51 end 52 end