wterl:session_create still fails, keep ignoring return value
This commit is contained in:
parent
fbc6f9b440
commit
2618ba24e7
1 changed files with 4 additions and 1 deletions
|
@ -103,7 +103,10 @@ start(Partition, Config) ->
|
||||||
{ok, ConnRef} ->
|
{ok, ConnRef} ->
|
||||||
Table = "table:wt" ++ integer_to_list(Partition),
|
Table = "table:wt" ++ integer_to_list(Partition),
|
||||||
{ok, SRef} = wterl:session_open(ConnRef),
|
{ok, SRef} = wterl:session_open(ConnRef),
|
||||||
ok = wterl:session_create(SRef, Table),
|
%% TODO: should check return value here, but we
|
||||||
|
%% currently get an error when the table already
|
||||||
|
%% exists, so for now we ignore it.
|
||||||
|
wterl:session_create(SRef, Table),
|
||||||
{ok, #state{conn=ConnRef,
|
{ok, #state{conn=ConnRef,
|
||||||
table=Table,
|
table=Table,
|
||||||
session=SRef,
|
session=SRef,
|
||||||
|
|
Loading…
Reference in a new issue