This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
if metaPkt.Magic == nncp.MagicNNCPMv1.B {
ctx.LogE("reass", les, nncp.MagicNNCPMv1.TooOld(), logMsg)
return false
if metaPkt.Magic == nncp.MagicNNCPMv1.B {
ctx.LogE("reass", les, nncp.MagicNNCPMv1.TooOld(), logMsg)
return false
- if err = tmp.Sync(); err != nil {
- log.Fatalln("Can not sync:", err)
+ if !nncp.NoSync {
+ if err = tmp.Sync(); err != nil {
+ log.Fatalln("Can not sync:", err)
+ }
}
if err = tmp.Close(); err != nil {
log.Fatalln("Can not close:", err)
}
if err = tmp.Close(); err != nil {
log.Fatalln("Can not close:", err)
if err != nil {
ctx.LogE("reass", nncp.LEs{{K: "Path", V: dirPath}}, err, logMsg)
return nil
if err != nil {
ctx.LogE("reass", nncp.LEs{{K: "Path", V: dirPath}}, err, logMsg)
return nil