Mercurial > prosody-modules
comparison mod_storage_gdbm/mod_storage_gdbm.lua @ 1754:c04d10557bbc
mod_storage_gdbm: Fix typo in unused field on store instance
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Tue, 19 May 2015 22:15:53 +0200 |
| parents | 54c8a0cb2996 |
| children | c619425dafe7 |
comparison
equal
deleted
inserted
replaced
| 1753:54c8a0cb2996 | 1754:c04d10557bbc |
|---|---|
| 150 local db = cache[db_path]; | 150 local db = cache[db_path]; |
| 151 if not db then | 151 if not db then |
| 152 db = assert(gdbm.open(db_path, "c")); | 152 db = assert(gdbm.open(db_path, "c")); |
| 153 cache[db_path] = db; | 153 cache[db_path] = db; |
| 154 end | 154 end |
| 155 return setmetatable({ _db = db; _path = db_path; store = store, typ = type }, driver_mt); | 155 return setmetatable({ _db = db; _path = db_path; store = store, type = typ }, driver_mt); |
| 156 end | 156 end |
| 157 | 157 |
| 158 function purge(_, user) | 158 function purge(_, user) |
| 159 for dir in lfs.dir(base_path) do | 159 for dir in lfs.dir(base_path) do |
| 160 local name, ext = dir:match("^(.-)%.a?db$"); | 160 local name, ext = dir:match("^(.-)%.a?db$"); |
