comparison tests/test-transaction-rollback-on-revlog-split.t @ 47875:0fb328bb2459

debugrebuildfncache: add a cheaper option to rebuild the fncache On my repository, debugrebuildfncache takes 5-10min with the lock. With the flag added in this commit, it takes 10s. The tradeoff is that it only recovers from certain kinds of corruptions. It is intended to to recover faster from fncaches broken by a revlog split during a transaction that ends up being rolled back. Differential Revision: https://phab.mercurial-scm.org/D11265
author Valentin Gatien-Baron <vgatien-baron@janestreet.com>
date Fri, 06 Aug 2021 16:27:17 -0400
parents 308e843f24b1
children f38ae2d7390e
comparison
equal deleted inserted replaced
47874:308e843f24b1 47875:0fb328bb2459
84 84
85 $ hg verify -q 85 $ hg verify -q
86 warning: revlog 'data/file.d' not in fncache! 86 warning: revlog 'data/file.d' not in fncache!
87 1 warnings encountered! 87 1 warnings encountered!
88 hint: run "hg debugrebuildfncache" to recover from corrupt fncache 88 hint: run "hg debugrebuildfncache" to recover from corrupt fncache
89 $ hg debugrebuildfncache --only-data
90 adding data/file.d
91 1 items added, 0 removed from fncache
92 $ hg verify -q
89 $ cd .. 93 $ cd ..
90 94
91 95
92 Now retry the procedure but intercept the rename of the index and check that 96 Now retry the procedure but intercept the rename of the index and check that
93 the journal does not contain the new index size. This demonstrates the edge case 97 the journal does not contain the new index size. This demonstrates the edge case