mod_storage_*: Don't explicitly set driver name, to ease copying/renaming modules.
authorWaqas Hussain <waqas20@gmail.com>
Wed, 12 Sep 2012 23:46:10 +0500
changeset 5122 b41c33dc7c36
parent 5121 b5a5643f8572
child 5123 7c5c86fa552e
mod_storage_*: Don't explicitly set driver name, to ease copying/renaming modules.
plugins/mod_storage_internal.lua
plugins/mod_storage_sql.lua
--- a/plugins/mod_storage_internal.lua	Wed Sep 12 23:41:28 2012 +0500
+++ b/plugins/mod_storage_internal.lua	Wed Sep 12 23:46:10 2012 +0500
@@ -2,7 +2,7 @@
 
 local host = module.host;
 
-local driver = { name = "internal" };
+local driver = {};
 local driver_mt = { __index = driver };
 
 function driver:open(store)
--- a/plugins/mod_storage_sql.lua	Wed Sep 12 23:41:28 2012 +0500
+++ b/plugins/mod_storage_sql.lua	Wed Sep 12 23:46:10 2012 +0500
@@ -365,7 +365,7 @@
 	return nil, "not-implemented"
 end
 
-local driver = { name = "sql" };
+local driver = {};
 
 function driver:open(store, typ)
 	if not typ then -- default key-value store