错误代码门户
SQLiteSQLite错误代码

SQLITE_LOCKED_VTAB

locked vtab

其他表示形式:518

代码 SQLITE_LOCKED_VTAB · SQLite 报告的问题。

SQLITE_LOCKED_VTAB 结果代码不被 SQLite 核心使用,但可供扩展使用。虚拟表实现可以返回此结果代码,以指示由于其他线程或进程持有锁,它们无法完成当前操作。 当尝试更新 R-Tree 而另一个准备好的语句正在主动读取 R-Tree 时,R-Tree 扩展会返回此结果代码。更新无法继续,因为对 R-Tree 的任何更改都可能涉及节点的重新洗牌和重新平衡,这会破坏读取游标,导致某些行重复而其他行被省略。

Google Translate · 此内容为自动翻译。技术术语及适用条件请以英文原文为准。

The SQLITE_LOCKED_VTAB result code is not used by the SQLite core, but it is available for use by extensions. Virtual table implementations can return this result code to indicate that they cannot complete the current operation because of locks held by other threads or processes. The R-Tree extension returns this result code when an attempt is made to update the R-Tree while another prepared statement is actively reading the R-Tree. The update cannot proceed because any change to an R-Tree might involve reshuffling and rebalancing of nodes, which would disrupt read cursors, causing some rows to be repeated and other rows to be omitted.

故障排除与诊断链接

请先确认文档中的产品、版本及发生环境与当前情况一致。

此条目仅链接至官方代码参考文档。尚未验证单独的故障排除步骤。