File tier: the #577 re-check's log line on Windows only (the unbuffered reads exist there alone)

This commit is contained in:
Niko1221 committed 2026-10-03 18:37:11 +02:00
1 parent 5b735eccb2
commit 4e413b344e
1 file changed
+4 -1
+4 -1
View File
@@ -4178,7 +4178,9 @@ int main(int argc, char** argv) {
}
// #577: the unbuffered choice above was made before the RAM copy existed, from the budget asked for; now the
// copy is built, decide again from the RAM it really holds and the expert bytes outside it (on a 96 GB PC
// the file cache keeps those, and every refill after a prompt read the drive instead)
// the file cache keeps those, and every refill after a prompt read the drive instead). Windows only: the
// unbuffered reads exist there alone
#if defined(_WIN32)
if (o.mmap_experts && o.resident_budget > 0) {
std::string why;
const bool was = src.unbuffered();
@@ -4186,6 +4188,7 @@ int main(int argc, char** argv) {
std::fprintf(stderr, "strata generate: the file tier reads %s%s (%s)\n",
ub ? "unbuffered" : "through the file cache", ub == was ? "" : " (changed)", why.c_str());
}
#endif
}
if (o.serve) {
if (o.spec < 2 || o.mtp.empty() || o.prefill_chunk <= 0 ||