Commit fd23067f authored by Yoni Fogel's avatar Yoni Fogel

Addresses #1396

Dirty a db when it is truncated

git-svn-id: file:///svn/toku/tokudb@9113 c7de825b-a66e-492c-adef-691d508d4ae1
parent ab76ea50
......@@ -291,6 +291,8 @@ int toku_cachefile_fd (CACHEFILE cf) {
}
int toku_cachefile_truncate0 (CACHEFILE cf) {
int r = toku_graceful_dirty(cachefile);
if (r!=0) return r;
int r = ftruncate(cf->fd, 0);
if (r != 0)
r = errno;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment