From c7c8c47850b8a1dee621e873ea20c123877baa2a Mon Sep 17 00:00:00 2001 From: Yat Ho Date: Mon, 14 Oct 2024 10:56:44 +0800 Subject: [PATCH] perf: don't open torrent file descriptors with `TR_SYS_FILE_SEQUENTIAL` (#7089) --- libtransmission/open-files.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libtransmission/open-files.cc b/libtransmission/open-files.cc index 813266e31..429eb40bf 100644 --- a/libtransmission/open-files.cc +++ b/libtransmission/open-files.cc @@ -184,7 +184,7 @@ std::optional tr_open_files::get( // open the file int flags = writable ? (TR_SYS_FILE_WRITE | TR_SYS_FILE_CREATE) : 0; - flags |= TR_SYS_FILE_READ | TR_SYS_FILE_SEQUENTIAL; + flags |= TR_SYS_FILE_READ; auto const fd = tr_sys_file_open(filename, flags, 0666, &error); if (!is_open(fd)) {