Skip to content
Browse files

fix default pool id

  • Loading branch information...
1 parent 916ede2 commit fa6cca62a1652df4d3ff4555df7fe774938a14ee yarivvv committed Nov 26, 2007
Showing with 3 additions and 9 deletions.
  1. +3 −9 src/erlydb/erlydb.erl
View
12 src/erlydb/erlydb.erl
@@ -368,20 +368,14 @@ gen_module_code(ModulePath, DefaultDriverMod,
get_driver_settings(Module, DriversData, DefaultDriverMod),
DriverMod = driver_mod(Driver),
- PoolId1 = if PoolId == undefined ->
- DriverMod:get_default_pool_id();
- true ->
- PoolId
- end,
-
TablesData =
- case gb_trees:lookup(PoolId1, PoolsData) of
+ case gb_trees:lookup(PoolId, PoolsData) of
{value, Val} ->
Val;
_ ->
exit({invalid_erlydb_pool_option,
{{module, Module},
- {pool_id, PoolId1}}})
+ {pool_id, PoolId}}})
end,
case gb_trees:lookup(get_table(Module), TablesData) of
@@ -390,7 +384,7 @@ gen_module_code(ModulePath, DefaultDriverMod,
Options2 = DriverOptions ++ Options,
MetaMod =
make_module(DriverMod, C2, Fields,
- [{pool_id, PoolId1} | Options2],
+ [{pool_id, PoolId} | Options2],
TablesData),
smerl:compile(MetaMod, Options);
none ->

0 comments on commit fa6cca6

Please sign in to comment.
Something went wrong with that request. Please try again.