|
|
@@ -1193,7 +1193,7 @@ func (c *Conn) executeQuery(ctx context.Context, qry *Query) *Iter {
|
|
|
return iter
|
|
|
case *RequestErrUnprepared:
|
|
|
stmtCacheKey := c.session.stmtsLRU.keyFor(c.addr, c.currentKeyspace, qry.stmt)
|
|
|
- c.session.stmtsLRU.remove(stmtCacheKey)
|
|
|
+ c.session.stmtsLRU.evictPreparedID(stmtCacheKey, x.StatementId)
|
|
|
return c.executeQuery(ctx, qry)
|
|
|
case error:
|
|
|
return &Iter{err: x, framer: framer}
|
|
|
@@ -1334,7 +1334,7 @@ func (c *Conn) executeBatch(ctx context.Context, batch *Batch) *Iter {
|
|
|
stmt, found := stmts[string(x.StatementId)]
|
|
|
if found {
|
|
|
key := c.session.stmtsLRU.keyFor(c.addr, c.currentKeyspace, stmt)
|
|
|
- c.session.stmtsLRU.remove(key)
|
|
|
+ c.session.stmtsLRU.evictPreparedID(key, x.StatementId)
|
|
|
}
|
|
|
return c.executeBatch(ctx, batch)
|
|
|
case *resultRowsFrame:
|