Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error when using cache_size = 1 #229

Open
Pomyk opened this issue Aug 16, 2018 · 0 comments
Open

error when using cache_size = 1 #229

Pomyk opened this issue Aug 16, 2018 · 0 comments

Comments

@Pomyk
Copy link

Pomyk commented Aug 16, 2018

With cache_size = 1 I get the following error:

** (MatchError) no match of right hand side value: nil
    (mariaex) lib/mariaex/lru_cache.ex:57: Mariaex.LruCache.take_oldest/1
    (mariaex) lib/mariaex/protocol.ex:351: Mariaex.Protocol.prepare_lookup/2
    (mariaex) lib/mariaex/protocol.ex:336: Mariaex.Protocol.handle_prepare/3
    (mariaex) lib/mariaex/protocol.ex:328: Mariaex.Protocol.handle_prepare/3
    (db_connection) lib/db_connection.ex:966: DBConnection.handle/4
    (db_connection) lib/db_connection.ex:1067: anonymous fn/4 in DBConnection.run_prepare_execute/4
    (db_connection) lib/db_connection.ex:1150: anonymous fn/4 in DBConnection.run_meter/5
    (db_connection) lib/db_connection.ex:1207: DBConnection.run_begin/3
    (db_connection) lib/db_connection.ex:592: DBConnection.prepare_execute/4
    (ecto) lib/ecto/adapters/mysql/connection.ex:22: Ecto.Adapters.MySQL.Connection.execute/4
    (ecto) lib/ecto/adapters/sql.ex:256: Ecto.Adapters.SQL.sql_call/6
    (ecto) lib/ecto/adapters/sql.ex:448: Ecto.Adapters.SQL.sql_call!/6
    (ecto) lib/ecto/adapters/sql.ex:420: Ecto.Adapters.SQL.do_execute/6
    (ecto) lib/ecto/repo/queryable.ex:133: Ecto.Repo.Queryable.execute/5
    (ecto) lib/ecto/repo/queryable.ex:37: Ecto.Repo.Queryable.all/4```

Tested on mariaex 0.8.4 and 0.8.3. With cache_size = 2 there are no errors.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant