# HG changeset patch # User Paul Boddie # Date 1706051563 -3600 # Node ID 39dc43aadc92236e65f711d0df1f6958bd425075 # Parent 4c5fc873da6e164f062766217f2066461c025eca Do not update the populated size when flushing a reader pipe. diff -r 4c5fc873da6e -r 39dc43aadc92 libfsserver/lib/pipes/pipe_pager.cc --- a/libfsserver/lib/pipes/pipe_pager.cc Sun Jan 21 18:50:34 2024 +0100 +++ b/libfsserver/lib/pipes/pipe_pager.cc Wed Jan 24 00:12:43 2024 +0100 @@ -1,7 +1,7 @@ /* * A pipe pager providing access to pipe content and navigation support. * - * Copyright (C) 2021, 2022, 2023 Paul Boddie + * Copyright (C) 2021, 2022, 2023, 2024 Paul Boddie * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as @@ -161,7 +161,7 @@ long PipePager::flush(offset_t populated_size, offset_t *size) { - if (_mapper != NULL) + if (_writing && (_mapper != NULL)) _mapper->set_data_size(populated_size); *size = _size;