SVN 1.8,当SVN(1.7)更新时,数据库被破坏:'sqlite:数据库图像格式错误(S11)',并且reindex不起作用'

时间:2013-12-24 09:46:27

标签: svn sqlite jenkins tortoisesvn

我使用SVN 1.8的TortoiseSVN,在尝试使用旧版本的SVN(1.7通过Jenkins)更新后,1.7 SVN更新操作本身失败,然后数据库被破坏。 .svn文件夹中的许多文件和文件夹都消失了。从另一个新副本(没有我的本地更改)复制它们后,我仍然得到一个

"sqlite: data base image malformed (S11)",

我在 svn cleanup: sqlite: database disk image is malformed 中尝试了解决方案,但它们无效。我得到以下回应:

C:\my\path>sqlite3 .svn/wc.db "pragma integrity_check"

*** in database main ***

Main freelist: freelist leaf count too big on page 5606

On tree page 5522 cell 116: 2nd reference to page 5606

On tree page 5522 cell 116: Child page depth differs

On page 5522 at right child: invalid page number 5666

row 2995 missing from index I_PRISTINE_MD5

row 2995 missing from index sqlite_autoindex_PRISTINE_1

wrong # of entries in index I_PRISTINE_MD5

wrong # of entries in index sqlite_autoindex_PRISTINE_1

Error: database disk image is malformed

C:\my\path>sqlite3 .svn/wc.db "reindex nodes"

Error: database disk image is malformed

C:\my\path>sqlite3 .svn/wc.db "reindex pristine"

Error: database disk image is malformed

1 个答案:

答案 0 :(得分:2)

只需查看新的工作副本并删除旧的副本(移动更改后)。

将WC更新为较新版本后,您无法将其与旧版本一起使用。在过去,您只是收到一条消息,说客户端对于工作副本来说太旧了;将所有内容移动到SQLite数据库中(从1.7开始),执行此操作时可能会有更高的破坏风险。