• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

codenotary / immudb / 7339514679

27 Dec 2023 03:06PM UTC coverage: 89.529% (+0.01%) from 89.519%
7339514679

Pull #1907

gh-ci

SimoneLazzaris
fix memory limit
Pull Request #1907: release/v1.9DOM.2 RC1

33962 of 37934 relevant lines covered (89.53%)

143674.94 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

54.55
/embedded/appendable/fileutils/fileutils_linux.go
1
//go:build linux
2
// +build linux
3

4
/*
5
Copyright 2024 Codenotary Inc. All rights reserved.
6

7
SPDX-License-Identifier: BUSL-1.1
8
you may not use this file except in compliance with the License.
9
You may obtain a copy of the License at
10

11
    https://mariadb.com/bsl11/
12

13
Unless required by applicable law or agreed to in writing, software
14
distributed under the License is distributed on an "AS IS" BASIS,
15
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
See the License for the specific language governing permissions and
17
limitations under the License.
18
*/
19

20
package fileutils
21

22
import (
23
        "golang.org/x/sys/unix"
24
        "os"
25
)
26

27
func syncDir(path string) error {
47,774✔
28
        f, err := os.Open(path)
47,774✔
29
        if err != nil {
47,774✔
30
                return err
×
31
        }
×
32

33
        defer f.Close()
47,774✔
34

47,774✔
35
        return f.Sync()
47,774✔
36
}
37

38
func fdatasync(f *os.File) error {
×
39
        return unix.Fdatasync(int(f.Fd()))
×
40
}
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc