Closed SUNRise666s closed 3 years ago
Which version? And please check the permission
thank you for response! It build on Windows and run on Windows
the error code is below.
你好,我编译的是windows的版本,是在windows运行
错误代码我调整如下便没报错
/*err = fb.producer.Truncate(0)
if err != nil {
log.Print("truncate error: ", err)
return
}*/
pathname := filepath.Join(fb.datadir, fb.filename)
filename := pathname + ".dat"
err = os.Truncate(filename,0)
if err != nil {
log.Print("truncate error: ", err)
return
}
Version is the latest 2.5.5
Thanks for your feedback! I will also check the changes in Linux and Mac
Thank you for response!Linux is ok and it's useful,I had Checked.By the way, it's not support for windows?
I haven't tested it on Windows, but Linux has been verified in the production environment of many our customers for long time
truncate error: truncate F:\SYN\influx-proxy\data\influxdb-2-1.dat: Access is denied.
the data rewrite success but the data file still here and the file size not change