mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 06:44:16 +01:00
Addresses #1396
Dirty a db when it is truncated git-svn-id: file:///svn/toku/tokudb@9113 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
ab76ea5007
commit
fd23067f99
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue