Commit Graph

10 Commits

Author SHA1 Message Date
aj heller
959bb8a2a3 adds flatzone lookup by TzName to both db implementations 2012-12-17 23:52:20 -08:00
aj heller
aa79af71aa fixes db crash; simplifies the ezic_db proxy module
The db crash happens when calling `ezic_db:get_all(X)` when `X` is not
a valid table name. `ezic_db_ets` crashes, causing the `ezic_db`
server to crash, tossing the database with it. The solution prevents
ezic_db_ets:get_all/1 from crashing, and instead returns an error
value.

The simplification here eliminated some code through
deduplication. The `handle_call` functions could be improved
similarly.
2012-12-17 18:02:16 -08:00
aj heller
d98eed7b52 implements a fix for losing the ets dbs on a bad lookup
The `ezic_db` server would crash on a bad lookup (no_zone,
ambiguous_zone, etc.). The old error notification method for bad
lookups (crashing) was killing the server and apparently eliminating
the in-memory tables.
2012-12-17 16:06:06 -08:00
aj heller
52ad0119cb removes unused code and changes variable names for clarity 2012-12-17 15:22:59 -08:00
lsowen
2866c9c505 I think I solved the deadlock of nested gen_server:call()s 2012-12-05 13:17:20 -05:00
lsowen
4f3364a76d Much cleaner, but not working, because I have a circular loop 2012-12-04 21:36:44 -05:00
lsowen
9d0df77b29 Now using named ets tables.
More closely mirrors the design of the mnesia backed version.
2012-11-07 14:06:27 -05:00
lsowen
fe6db38bec flatzone call was returning a list.
Update return value convention in ezic_db_ets:flatzone() to match ezic_db:flatzone().
2012-11-02 23:06:34 -04:00
lsowen
e8385d7d86 move forward on the transition to ets over mnesia 2012-11-02 22:50:17 -04:00
aj
a90d6246ec moving from mnesia to ets. matchspecs are complicated when dates and atoms are involved. 2010-11-18 00:28:50 -08:00